diff --git a/src/third_party/inih++/lib/ini.c b/src/third_party/inih++/lib/ini.c index 5228f0d..33d4691 100644 --- a/src/third_party/inih++/lib/ini.c +++ b/src/third_party/inih++/lib/ini.c @@ -52,7 +52,7 @@ static char* find_char_or_comment(const char* s, char c) { /* Version of strncpy that ensures dest (size bytes) is null-terminated. */ static char* strncpy0(char* dest, const char* src, size_t size) { - strncpy(dest, src, size); + memcpy(dest, src, size); dest[size - 1] = '\0'; return dest; }