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.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/toolchain/glibc/patches/100-fix_cross_rpcgen.patch b/toolchain/glibc/patches/100-fix_cross_rpcgen.patch
index 6a5e537b77..f10efcc5d6 100644
--- a/toolchain/glibc/patches/100-fix_cross_rpcgen.patch
+++ b/toolchain/glibc/patches/100-fix_cross_rpcgen.patch
@@ -38,7 +38,7 @@
+++ b/sunrpc/rpc_main.c
@@ -958,9 +958,10 @@ mkfile_output (struct commandline *cmd)
abort ();
- temp = rindex (cmd->infile, '.');
+ temp = strrchr (cmd->infile, '.');
cp = stpcpy (mkfilename, "Makefile.");
- if (temp != NULL)
- *((char *) stpncpy (cp, cmd->infile, temp - cmd->infile)) = '\0';