projects
/
openwrt-github
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b9bd900
)
eglibc: replace the use of stpncpy with strncpy + manual termination (stpncpy is...
author
Felix Fietkau
<nbd@openwrt.org>
Mon, 26 Jan 2009 19:49:26 +0000
(19:49 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Mon, 26 Jan 2009 19:49:26 +0000
(19:49 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14212
3c298f89
-4303-0410-b956-
a3cf2f4a3e73
toolchain/eglibc/patches/2.9/100-darwin_cross.patch
patch
|
blob
|
history
diff --git
a/toolchain/eglibc/patches/2.9/100-darwin_cross.patch
b/toolchain/eglibc/patches/2.9/100-darwin_cross.patch
index c149337c39ac5016f01de35ff1bcad29674625eb..a9fddb7d0124bb7dbd8737cc54f61abc6a431d2f 100644
(file)
--- a/
toolchain/eglibc/patches/2.9/100-darwin_cross.patch
+++ b/
toolchain/eglibc/patches/2.9/100-darwin_cross.patch
@@
-30,6
+30,20
@@
#include <ctype.h>
#include <sys/types.h>
#include <sys/param.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/param.h>
+@@ -998,9 +1002,10 @@ mkfile_output (struct commandline *cmd)
+ abort ();
+ temp = rindex (cmd->infile, '.');
+ cp = stpcpy (mkfilename, "Makefile.");
+- if (temp != NULL)
+- *((char *) stpncpy (cp, cmd->infile, temp - cmd->infile)) = '\0';
+- else
++ if (temp != NULL) {
++ strncpy (cp, cmd->infile, temp - cmd->infile);
++ cp[temp - cmd->infile - 1] = '\0';
++ } else
+ stpcpy (cp, cmd->infile);
+
+ }
--- a/libc/sunrpc/rpc_scan.c
+++ b/libc/sunrpc/rpc_scan.c
@@ -39,7 +39,11 @@
--- a/libc/sunrpc/rpc_scan.c
+++ b/libc/sunrpc/rpc_scan.c
@@ -39,7 +39,11 @@