diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/m_misc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/m_misc.c b/src/m_misc.c index fca26f85..8fa526dc 100644 --- a/src/m_misc.c +++ b/src/m_misc.c @@ -342,6 +342,8 @@ char *M_StringReplace(const char *haystack, const char *needle, } } + *dst = '\0'; + return result; } |