summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhobbs <hobbs>2008-04-07 18:38:01 (GMT)
committerhobbs <hobbs>2008-04-07 18:38:01 (GMT)
commitf870f2742a8c69670929f7310639af1e1f6dc681 (patch)
treea28ba964120621438a5d6f3ae1b1db40ea066119
parentb3d10f91d5bd468154cd8fd3678e42f97384efeb (diff)
downloadtk-f870f2742a8c69670929f7310639af1e1f6dc681.zip
tk-f870f2742a8c69670929f7310639af1e1f6dc681.tar.gz
tk-f870f2742a8c69670929f7310639af1e1f6dc681.tar.bz2
* generic/tkArgv.c: fix -help mem explosion. [Bug 1936238] (bachmann)
-rw-r--r--ChangeLog4
-rw-r--r--generic/tkArgv.c5
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index dc106ad..084af58 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-04-07 Jeff Hobbs <jeffh@ActiveState.com>
+
+ * generic/tkArgv.c: fix -help mem explosion. [Bug 1936238] (bachmann)
+
2008-04-03 Pat Thoyts <patthoyts@users.sourceforge.net>
* library/ttk/xpTheme.tcl: fix the colour of labelframe in xp
diff --git a/generic/tkArgv.c b/generic/tkArgv.c
index 95991ee..286f348 100644
--- a/generic/tkArgv.c
+++ b/generic/tkArgv.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkArgv.c,v 1.11 2007/12/13 15:24:13 dgp Exp $
+ * RCS: @(#) $Id: tkArgv.c,v 1.11.2.1 2008/04/07 18:38:01 hobbs Exp $
*/
#include "tkInt.h"
@@ -337,7 +337,8 @@ PrintUsage(
* for default options. */
{
register Tk_ArgvInfo *infoPtr;
- size_t width, i, numSpaces;
+ size_t width, i;
+ int numSpaces; /* must be int to allow for negative values */
#define NUM_SPACES 20
static char spaces[] = " ";
char tmp[TCL_DOUBLE_SPACE];