patch-lib_regex_c 557 B

12345678910111213141516
  1. workaround for uClibc
  2. --- diffutils-2.8.1.orig/lib/regex.c 2002-03-01 08:44:52.000000000 +0100
  3. +++ diffutils-2.8.1/lib/regex.c 2009-08-28 16:39:02.000000000 +0200
  4. @@ -8313,12 +8313,8 @@ regerror (errcode, preg, errbuf, errbuf_
  5. {
  6. if (msg_size > errbuf_size)
  7. {
  8. -#if defined HAVE_MEMPCPY || defined _LIBC
  9. - *((char *) __mempcpy (errbuf, msg, errbuf_size - 1)) = '\0';
  10. -#else
  11. memcpy (errbuf, msg, errbuf_size - 1);
  12. errbuf[errbuf_size - 1] = 0;
  13. -#endif
  14. }
  15. else
  16. memcpy (errbuf, msg, msg_size);