From c784898768a3bdf627cd6a9ae33e7b885d80e44d Mon Sep 17 00:00:00 2001 From: Miguel Sofer Date: Wed, 30 Jan 2008 10:46:51 +0000 Subject: * generic/tclInterp.c (Tcl_GetAlias): fix for [Bug 1882373] --- ChangeLog | 4 ++++ generic/tclInterp.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2266329..35a0070 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-01-30 Miguel Sofer + + * generic/tclInterp.c (Tcl_GetAlias): fix for [Bug 1882373] + 2008-01-13 Jeff Hobbs * win/tclWinSerial.c (SerialCloseProc, TclWinOpenSerialChannel): diff --git a/generic/tclInterp.c b/generic/tclInterp.c index 7fae90a..bd2db56 100644 --- a/generic/tclInterp.c +++ b/generic/tclInterp.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclInterp.c,v 1.20.2.3 2006/11/28 22:20:02 andreas_kupries Exp $ + * RCS: @(#) $Id: tclInterp.c,v 1.20.2.4 2008/01/30 10:46:56 msofer Exp $ */ #include "tclInt.h" @@ -967,7 +967,7 @@ Tcl_GetAlias(interp, aliasName, targetInterpPtr, targetNamePtr, argcPtr, *argvPtr = (CONST char **) ckalloc((unsigned) sizeof(CONST char *) * (objc - 1)); for (i = 1; i < objc; i++) { - *argvPtr[i - 1] = Tcl_GetString(objv[i]); + (*argvPtr)[i - 1] = Tcl_GetString(objv[i]); } } return TCL_OK; -- cgit v0.12