summaryrefslogtreecommitdiffstats
path: root/generic/tclResult.c
diff options
context:
space:
mode:
authorstanton <stanton@noemail.net>1999-05-07 20:07:34 (GMT)
committerstanton <stanton@noemail.net>1999-05-07 20:07:34 (GMT)
commitbfdf7176fc0555e6cde660fbf3c7a2aefebb49c0 (patch)
treef046004c395fea832db79ce3ba703b4c59e8f154 /generic/tclResult.c
parent8debfd072bd934e8eabc6b5ff18f31df2d688257 (diff)
downloadtcl-bfdf7176fc0555e6cde660fbf3c7a2aefebb49c0.zip
tcl-bfdf7176fc0555e6cde660fbf3c7a2aefebb49c0.tar.gz
tcl-bfdf7176fc0555e6cde660fbf3c7a2aefebb49c0.tar.bz2
* generic/tclResult.c (Tcl_AppendResultVA):
* generic/tclStringObj.c (Tcl_AppendStringsToObjVA): Fixed to copy arglist using memcpy instead of assignment so it works properly on OS/390. [Bug: 1997] FossilOrigin-Name: dea0868b6c82a765b09713587753a64071692834
Diffstat (limited to 'generic/tclResult.c')
-rw-r--r--generic/tclResult.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclResult.c b/generic/tclResult.c
index 002437d..2f18b51 100644
--- a/generic/tclResult.c
+++ b/generic/tclResult.c
@@ -8,7 +8,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclResult.c,v 1.2 1999/04/16 00:46:53 stanton Exp $
+ * RCS: @(#) $Id: tclResult.c,v 1.3 1999/05/07 20:07:35 stanton Exp $
*/
#include "tclInt.h"
@@ -475,7 +475,7 @@ Tcl_AppendResultVA (interp, argList)
* Scan through all the arguments to see how much space is needed.
*/
- tmpArgList = argList;
+ memcpy ((VOID *) &tmpArgList, (VOID *) &argList, sizeof (tmpArgList));
newSpace = 0;
while (1) {
string = va_arg(tmpArgList, char *);