diff options
author | Ichito Nagata <i.nagata110@gmail.com> | 2017-03-22 17:03:52 +0900 |
---|---|---|
committer | Ichito Nagata <i.nagata110@gmail.com> | 2017-03-22 17:03:52 +0900 |
commit | 2ec7740c3a4661c2b0c05278a6f756c291547647 (patch) | |
tree | e3da18413784e6c93421e7abf9683bed40556a59 | |
parent | c9b72f97f8252bf447e7421b9d929410593f60c1 (diff) |
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 |