summaryrefslogtreecommitdiffstats
path: root/generic/tclResult.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-09-29 12:51:24 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-09-29 12:51:24 (GMT)
commit05301b57c56276fe90f0696d9e312eff2f67c993 (patch)
treefe6634871841e367400ebb05c56970f5741cb369 /generic/tclResult.c
parent2ea6a13c20ca3d08cfe79d7254f5e5631ae31568 (diff)
parent2342babe990ebbf9e046143ce965996fc5701abc (diff)
downloadtcl-05301b57c56276fe90f0696d9e312eff2f67c993.zip
tcl-05301b57c56276fe90f0696d9e312eff2f67c993.tar.gz
tcl-05301b57c56276fe90f0696d9e312eff2f67c993.tar.bz2
Merge 8.7
Diffstat (limited to 'generic/tclResult.c')
-rw-r--r--generic/tclResult.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tclResult.c b/generic/tclResult.c
index 4b9df6c..1fb2ad0 100644
--- a/generic/tclResult.c
+++ b/generic/tclResult.c
@@ -841,19 +841,19 @@ SetupAppendBuffer(
totalSpace = newSpace + iPtr->appendUsed;
if (totalSpace >= iPtr->appendAvl) {
- char *newSpace;
+ char *newSpacePtr;
if (totalSpace < 100) {
totalSpace = 200;
} else {
totalSpace *= 2;
}
- newSpace = (char *)ckalloc(totalSpace);
- strcpy(newSpace, iPtr->result);
+ newSpacePtr = (char *)ckalloc(totalSpace);
+ strcpy(newSpacePtr, iPtr->result);
if (iPtr->appendResult != NULL) {
ckfree(iPtr->appendResult);
}
- iPtr->appendResult = newSpace;
+ iPtr->appendResult = newSpacePtr;
iPtr->appendAvl = totalSpace;
} else if (iPtr->result != iPtr->appendResult) {
strcpy(iPtr->appendResult, iPtr->result);