Skip to content

Commit

Permalink
suppress gcc complaint
Browse files Browse the repository at this point in the history
  • Loading branch information
i110 committed Mar 22, 2017
1 parent c9b72f9 commit 2ec7740
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hiredis.h
Expand Up @@ -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
Expand Down

0 comments on commit 2ec7740

Please sign in to comment.