diff options
author | Jakub Jelinek <jakub@redhat.com> | 2008-11-12 20:29:35 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2008-11-12 20:29:35 +0000 |
commit | 03c8e287448a12c8c4c6db3570f5b7e3930d488d (patch) | |
tree | 6227d4a8b3362cade23f1a5bdf6065c4e4a415ec /sunrpc/rpc_main.c | |
parent | c02fa54041a68c12107ec577770ff81329af3bef (diff) |
Updated to fedora-glibc-20081112T2008cvs/fedora-glibc-2_8_90-17
Diffstat (limited to 'sunrpc/rpc_main.c')
-rw-r--r-- | sunrpc/rpc_main.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sunrpc/rpc_main.c b/sunrpc/rpc_main.c index bda432d3cd..a3d227e524 100644 --- a/sunrpc/rpc_main.c +++ b/sunrpc/rpc_main.c @@ -995,7 +995,11 @@ mkfile_output (struct commandline *cmd) abort (); temp = rindex (cmd->infile, '.'); cp = stpcpy (mkfilename, "Makefile."); - strncpy (cp, cmd->infile, (temp - cmd->infile)); + if (temp != NULL) + *((char *) stpncpy (cp, cmd->infile, temp - cmd->infile)) = '\0'; + else + stpcpy (cp, cmd->infile); + } else mkfilename = (char *) cmd->outfile; |