summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan-Erik Rediger <badboy@archlinux.us>2017-03-22 17:03:16 +0100
committerGitHub <noreply@github.com>2017-03-22 17:03:16 +0100
commit29cb95f4f67879a20ee784bdd4f6bd5b2105eb4d (patch)
treee3da18413784e6c93421e7abf9683bed40556a59
parentc9b72f97f8252bf447e7421b9d929410593f60c1 (diff)
parent2ec7740c3a4661c2b0c05278a6f756c291547647 (diff)
Merge pull request #513 from i110/master
suppress gcc complaint
-rw-r--r--hiredis.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hiredis.h b/hiredis.h
index 423d5e5..77d5797 100644
--- a/hiredis.h
+++ b/hiredis.h
@@ -99,7 +99,7 @@
* need to copy the result into our private buffer. */ \
if (err_str != (buf)) { \
strncpy((buf), err_str, ((len) - 1)); \
- buf[(len)-1] = '\0'; \
+ (buf)[(len)-1] = '\0'; \
} \
} while (0)
#endif