From 4ec9a206b5afd4888fb380f1337ec87aa7c592df Mon Sep 17 00:00:00 2001 From: Dave Beazley Date: Sun, 9 Jul 2000 21:47:13 +0000 Subject: [PATCH] Oops. A few other fixes. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@546 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Source/DOH/Doh/string.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/DOH/Doh/string.c b/Source/DOH/Doh/string.c index 6326182e4..16eea6f27 100644 --- a/Source/DOH/Doh/string.c +++ b/Source/DOH/Doh/string.c @@ -602,6 +602,7 @@ int replace_simple(String *str, char *token, char *rep, int flags, int count, ch memmove(t,s,(str->str + str->len) - s + 1); } str->len += expand; + str->str[str->len] = 0; if (str->sp >= str->len) str->sp += expand; /* Fix the end of file pointer */ return rcount; } @@ -693,6 +694,7 @@ int replace_simple(String *str, char *token, char *rep, int flags, int count, ch str->str = ns; if (str->sp >= str->len) str->sp += expand; str->len += expand; + str->str[str->len] = 0; str->maxsize = newsize; DohFree(c); return rcount;