X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/e8baf33f7be9a008d7cf53bea962206a5a53ed75..f78cc362dea387011962941efbc69178e1afe8b5:/toolchain/eglibc/patches/2.9/100-darwin_cross.patch?ds=sidebyside diff --git a/toolchain/eglibc/patches/2.9/100-darwin_cross.patch b/toolchain/eglibc/patches/2.9/100-darwin_cross.patch index c149337c3..a9fddb7d0 100644 --- 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 #include #include +@@ -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 @@