mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2024-12-26 14:00:56 +00:00
Formerly commands.c.~17~
This commit is contained in:
parent
4034f2bdfb
commit
b50f2fc0a6
1 changed files with 5 additions and 1 deletions
|
@ -44,11 +44,15 @@ set_file_variables (file)
|
||||||
|
|
||||||
if (ar_name (file->name))
|
if (ar_name (file->name))
|
||||||
{
|
{
|
||||||
|
unsigned int len;
|
||||||
p = index (file->name, '(');
|
p = index (file->name, '(');
|
||||||
at = (char *) alloca (p - file->name + 1);
|
at = (char *) alloca (p - file->name + 1);
|
||||||
bcopy (file->name, at, p - file->name);
|
bcopy (file->name, at, p - file->name);
|
||||||
at[p - file->name] = '\0';
|
at[p - file->name] = '\0';
|
||||||
percent = p + 1;
|
len = strlen (p + 1);
|
||||||
|
percent = (char *) alloca (len);
|
||||||
|
bcopy (p + 1, percent, len - 1);
|
||||||
|
percent[len - 1] = '\0';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif /* NO_ARCHIVES. */
|
#endif /* NO_ARCHIVES. */
|
||||||
|
|
Loading…
Reference in a new issue