glibc: update to latest stable version 2.32
[openwrt/staging/nbd.git] / toolchain / glibc / patches / 100-fix_cross_rpcgen.patch
index f10efcc5d65cf9d80cfddeecd06877a4b3ba963e..6ee1e804248c8ff29d46538ff99c85749f4ace39 100644 (file)
 +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);
-     }