suppress gcc complaint

This commit is contained in:
Ichito Nagata 2017-03-22 17:03:52 +09:00
parent c9b72f97f8
commit 2ec7740c3a

View File

@ -99,7 +99,7 @@
* need to copy the result into our private buffer. */ \ * need to copy the result into our private buffer. */ \
if (err_str != (buf)) { \ if (err_str != (buf)) { \
strncpy((buf), err_str, ((len) - 1)); \ strncpy((buf), err_str, ((len) - 1)); \
buf[(len)-1] = '\0'; \ (buf)[(len)-1] = '\0'; \
} \ } \
} while (0) } while (0)
#endif #endif