Fix broken -a functionality.
Reviewed by: phk Submitted by: Martin Kammerhofer <mkamm@gmx.net> PR: 53451 MFC: 1 week
This commit is contained in:
parent
611b183f86
commit
c5455e6d6a
@ -874,7 +874,7 @@ struct commandline *cmd;
|
||||
mkfilename = xmalloc(strlen("makefile.") +
|
||||
strlen(cmd->infile) + 1);
|
||||
temp = (char *)rindex(cmd->infile, '.');
|
||||
strcat(mkfilename, "makefile.");
|
||||
strcpy(mkfilename, "makefile.");
|
||||
(void) strncat(mkfilename, cmd->infile,
|
||||
(temp - cmd->infile));
|
||||
} else
|
||||
|
Loading…
Reference in New Issue
Block a user