From c5455e6d6ab422d543e852dc0fa2def2779b242d Mon Sep 17 00:00:00 2001 From: Martin Blapp Date: Thu, 19 Jun 2003 09:19:51 +0000 Subject: [PATCH] Fix broken -a functionality. Reviewed by: phk Submitted by: Martin Kammerhofer PR: 53451 MFC: 1 week --- usr.bin/rpcgen/rpc_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/rpcgen/rpc_main.c b/usr.bin/rpcgen/rpc_main.c index 35a0f71cc72..7fbc8b8198d 100644 --- a/usr.bin/rpcgen/rpc_main.c +++ b/usr.bin/rpcgen/rpc_main.c @@ -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