mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
Merge pull request #4226 from ffainelli/hiredis
hiredis: Fix __redis_strerror_r lvalue error
This commit is contained in:
@@ -0,0 +1,13 @@
|
|||||||
|
Index: hiredis-0.13.3/hiredis.h
|
||||||
|
===================================================================
|
||||||
|
--- hiredis-0.13.3.orig/hiredis.h
|
||||||
|
+++ hiredis-0.13.3/hiredis.h
|
||||||
|
@@ -98,7 +98,7 @@
|
||||||
|
* then GNU strerror_r returned an internal static buffer and we \
|
||||||
|
* need to copy the result into our private buffer. */ \
|
||||||
|
if (err_str != (buf)) { \
|
||||||
|
- buf[(len)] = '\0'; \
|
||||||
|
+ (buf)[(len)] = '\0'; \
|
||||||
|
strncat((buf), err_str, ((len) - 1)); \
|
||||||
|
} \
|
||||||
|
} while (0)
|
||||||
Reference in New Issue
Block a user