shithub: choc

Download patch

ref: 056bd10f6e6206fcb875e8601572e54ed216d4f1
parent: a43186b2beaab5fda826fe846d252fa6186d835a
author: Fabian Greffrath <fabian@greffrath.com>
date: Mon Oct 6 15:54:28 EDT 2014

terminate the destination string in M_StringReplace()

fixes #428

--- a/src/m_misc.c
+++ b/src/m_misc.c
@@ -342,6 +342,8 @@
         }
     }
 
+    *dst = '\0';
+
     return result;
 }