diff options
author | Jan-Erik Rediger <badboy@archlinux.us> | 2017-03-22 17:03:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-22 17:03:16 +0100 |
commit | 29cb95f4f67879a20ee784bdd4f6bd5b2105eb4d (patch) | |
tree | e3da18413784e6c93421e7abf9683bed40556a59 | |
parent | c9b72f97f8252bf447e7421b9d929410593f60c1 (diff) | |
parent | 2ec7740c3a4661c2b0c05278a6f756c291547647 (diff) |
Merge pull request #513 from i110/master
suppress gcc complaint
-rw-r--r-- | hiredis.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |