13 lines
772 B

  1. Index: hiredis-0.13.3/hiredis.h
  2. ===================================================================
  3. --- hiredis-0.13.3.orig/hiredis.h
  4. +++ hiredis-0.13.3/hiredis.h
  5. @@ -98,7 +98,7 @@
  6. * then GNU strerror_r returned an internal static buffer and we \
  7. * need to copy the result into our private buffer. */ \
  8. if (err_str != (buf)) { \
  9. - buf[(len)] = '\0'; \
  10. + (buf)[(len)] = '\0'; \
  11. strncat((buf), err_str, ((len) - 1)); \
  12. } \
  13. } while (0)