suppress gcc complaint

This commit is contained in:
Ichito Nagata 2017-03-22 17:03:52 +09:00
parent c9b72f97f8
commit 2ec7740c3a
1 changed files with 1 additions and 1 deletions

View File

@ -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