X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=toolchain%2Fglibc%2Fpatches%2F100-fix_cross_rpcgen.patch;h=f10efcc5d65cf9d80cfddeecd06877a4b3ba963e;hb=c7c14aaad36bb3d12dbcc826904154a1bc73c713;hp=6a5e537b77a6a7c780b5ed44dbe5e9f172468a54;hpb=f4d9d7a26b40db14c5d6a87f19df55dfb9000170;p=openwrt%2F.git 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';