diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-02-09 16:47:53 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-02-09 16:47:53 (GMT) |
commit | ed3c25350cd8659b57be5adaad6a92876a42b6a1 (patch) | |
tree | 5aa88bde6d3e44c3b40ef3fd35fe130330192df8 /generic | |
parent | 5c529283168fa509e2c10335cd12dd957dd97430 (diff) | |
parent | d60cf573c0bea70afa8597c60cc7ab5b0d96973c (diff) | |
download | tcl-ed3c25350cd8659b57be5adaad6a92876a42b6a1.zip tcl-ed3c25350cd8659b57be5adaad6a92876a42b6a1.tar.gz tcl-ed3c25350cd8659b57be5adaad6a92876a42b6a1.tar.bz2 |
Merge 8.7
Diffstat (limited to 'generic')
-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 e29afcc..2f31960 100644 --- a/generic/tclUtil.c +++ b/generic/tclUtil.c @@ -802,9 +802,11 @@ TclCopyAndCollapse( char c = *src; if (c == '\\') { + char buf[4] = ""; int numRead; - int backslashCount = TclParseBackslash(src, count, &numRead, dst); + int backslashCount = TclParseBackslash(src, count, &numRead, buf); + memcpy(dst, buf, backslashCount); dst += backslashCount; newCount += backslashCount; src += numRead; |