[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commits] r7257 - /fsf/trunk/libc/sunrpc/rpc_main.c
- To: commits@xxxxxxxxxx
- Subject: [commits] r7257 - /fsf/trunk/libc/sunrpc/rpc_main.c
- From: eglibc@xxxxxxxxxx
- Date: Mon, 03 Nov 2008 08:02:56 -0000
Author: eglibc
Date: Mon Nov 3 00:02:53 2008
New Revision: 7257
Log:
Import glibc-mainline for 2008-11-03
Modified:
fsf/trunk/libc/sunrpc/rpc_main.c
Modified: fsf/trunk/libc/sunrpc/rpc_main.c
==============================================================================
--- fsf/trunk/libc/sunrpc/rpc_main.c (original)
+++ fsf/trunk/libc/sunrpc/rpc_main.c Mon Nov 3 00:02:53 2008
@@ -995,7 +995,11 @@
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;