patch-lib_util_c 398 B

123456789101112
  1. --- squid-3.0.STABLE15.orig/lib/util.c 2009-05-06 13:11:38.000000000 +0200
  2. +++ squid-3.0.STABLE15/lib/util.c 2009-06-04 21:05:19.000000000 +0200
  3. @@ -751,7 +751,8 @@ xstrdup(const char *s)
  4. /* copy string, including terminating character */
  5. sz = strlen(s) + 1;
  6. - p = memcpy((char *)xmalloc(sz), s, sz);
  7. + p = (char *)xmalloc(sz);
  8. + memcpy(p, s, sz);
  9. PROF_stop(xstrdup);