diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/m_misc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/m_misc.c b/src/m_misc.c index ab3c7009..53b86dba 100644 --- a/src/m_misc.c +++ b/src/m_misc.c @@ -379,6 +379,11 @@ boolean M_StringCopy(char *dest, const char *src, size_t dest_size) dest[dest_size - 1] = '\0'; strncpy(dest, src, dest_size - 1); } + else + { + return false; + } + len = strlen(dest); return src[len] == '\0'; } |