summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhobbs <hobbs>2004-07-14 19:07:48 (GMT)
committerhobbs <hobbs>2004-07-14 19:07:48 (GMT)
commit089fe7d1499c6e9e9b73f50d2b7dbbce193abfb4 (patch)
tree79afe803d9778230b8a37520baaf26005f014592
parentaa76271cc6a0a97765c9364b3a5829c8bfecc237 (diff)
downloadtk-089fe7d1499c6e9e9b73f50d2b7dbbce193abfb4.zip
tk-089fe7d1499c6e9e9b73f50d2b7dbbce193abfb4.tar.gz
tk-089fe7d1499c6e9e9b73f50d2b7dbbce193abfb4.tar.bz2
* generic/tkUndo.c (TkUndoSetDepth): correct -maxundo
segfault. [Bug #969358] (jiangwu)
-rw-r--r--ChangeLog3
-rw-r--r--generic/tkUndo.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index a3d95df..d55283a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2004-07-14 Jeff Hobbs <jeffh@ActiveState.com>
+ * generic/tkUndo.c (TkUndoSetDepth): correct -maxundo
+ segfault. [Bug #969358] (jiangwu)
+
* generic/tk.h (TK_PATCH_LEVEL):
* README, macosx/Wish.pbproj/project.pbxproj: bumped to
* unix/configure, unix/configure.in, unix/tk.spec: patchlevel 8.4.7
diff --git a/generic/tkUndo.c b/generic/tkUndo.c
index eb6f07b..c860021 100644
--- a/generic/tkUndo.c
+++ b/generic/tkUndo.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: tkUndo.c,v 1.1 2002/06/21 23:09:55 hobbs Exp $
+ * RCS: @(#) $Id: tkUndo.c,v 1.1.4.1 2004/07/14 19:07:48 hobbs Exp $
*/
#include "tkUndo.h"
@@ -205,7 +205,7 @@ void TkUndoSetDepth ( stack, maxdepth )
while ( elem ) {
prevelem = elem;
elem = elem->next;
- ckfree((char *) elem);
+ ckfree((char *) prevelem);
}
stack->depth = stack->maxdepth;
}