diff options
author | hobbs <hobbs> | 2004-07-14 19:07:48 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2004-07-14 19:07:48 (GMT) |
commit | 49b6fd71ff7a2c98a00a3bbb0b3b1d43d847e4b6 (patch) | |
tree | 79afe803d9778230b8a37520baaf26005f014592 /generic | |
parent | 46128dfa0ce1e4ae1c490a12a56ca8946449c816 (diff) | |
download | tk-49b6fd71ff7a2c98a00a3bbb0b3b1d43d847e4b6.zip tk-49b6fd71ff7a2c98a00a3bbb0b3b1d43d847e4b6.tar.gz tk-49b6fd71ff7a2c98a00a3bbb0b3b1d43d847e4b6.tar.bz2 |
* generic/tkUndo.c (TkUndoSetDepth): correct -maxundo
segfault. [Bug #969358] (jiangwu)
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkUndo.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |