aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain/glibc/patches/100-fix_cross_rpcgen.patch
diff options
context:
space:
mode:
Diffstat (limited to 'toolchain/glibc/patches/100-fix_cross_rpcgen.patch')
-rw-r--r--toolchain/glibc/patches/100-fix_cross_rpcgen.patch17
1 files changed, 0 insertions, 17 deletions
diff --git a/toolchain/glibc/patches/100-fix_cross_rpcgen.patch b/toolchain/glibc/patches/100-fix_cross_rpcgen.patch
index f10efcc5d6..6ee1e80424 100644
--- a/toolchain/glibc/patches/100-fix_cross_rpcgen.patch
+++ b/toolchain/glibc/patches/100-fix_cross_rpcgen.patch
@@ -33,20 +33,3 @@
+typedef char *caddr_t;
# define __daddr_t_defined
#endif
-
---- a/sunrpc/rpc_main.c
-+++ b/sunrpc/rpc_main.c
-@@ -958,9 +958,10 @@ mkfile_output (struct commandline *cmd)
- abort ();
- temp = strrchr (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);
-
- }