Fix broken -a functionality.

Reviewed by:	phk
Submitted by:	Martin Kammerhofer <mkamm@gmx.net>
PR:		53451

MFC:		1 week
This commit is contained in:
Martin Blapp 2003-06-19 09:19:51 +00:00
parent 611b183f86
commit c5455e6d6a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=116578

View File

@ -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