diff options
Diffstat (limited to 'generic/tclUtil.c')
-rw-r--r-- | generic/tclUtil.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tclUtil.c b/generic/tclUtil.c index a133d64..aef3a6e 100644 --- a/generic/tclUtil.c +++ b/generic/tclUtil.c @@ -795,9 +795,11 @@ TclCopyAndCollapse( char c = *src; if (c == '\\') { + char buf[4] = ""; size_t numRead; - size_t backslashCount = TclParseBackslash(src, count, &numRead, dst); + size_t backslashCount = TclParseBackslash(src, count, &numRead, buf); + memcpy(dst, buf, backslashCount); dst += backslashCount; newCount += backslashCount; src += numRead; |