summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-02-09 16:47:53 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-02-09 16:47:53 (GMT)
commited3c25350cd8659b57be5adaad6a92876a42b6a1 (patch)
tree5aa88bde6d3e44c3b40ef3fd35fe130330192df8 /generic
parent5c529283168fa509e2c10335cd12dd957dd97430 (diff)
parentd60cf573c0bea70afa8597c60cc7ab5b0d96973c (diff)
downloadtcl-ed3c25350cd8659b57be5adaad6a92876a42b6a1.zip
tcl-ed3c25350cd8659b57be5adaad6a92876a42b6a1.tar.gz
tcl-ed3c25350cd8659b57be5adaad6a92876a42b6a1.tar.bz2
Merge 8.7
Diffstat (limited to 'generic')
-rw-r--r--generic/tclUtil.c4
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;