diff options
author | dgp <dgp@users.sourceforge.net> | 2016-06-22 17:48:38 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2016-06-22 17:48:38 (GMT) |
commit | b0e0eec1d27b65fc2dc9726feb21c5b00d4a2f86 (patch) | |
tree | a2761490c7e300266191f3047102845715f39e54 /generic/tkWindow.c | |
parent | e3f97366c0879c3795864d9f6b67a993ca79d978 (diff) | |
download | tk-b0e0eec1d27b65fc2dc9726feb21c5b00d4a2f86.zip tk-b0e0eec1d27b65fc2dc9726feb21c5b00d4a2f86.tar.gz tk-b0e0eec1d27b65fc2dc9726feb21c5b00d4a2f86.tar.bz2 |
[787adc5ed7] Workaround potential crash in Tcl_DStringAppend.
Diffstat (limited to 'generic/tkWindow.c')
-rw-r--r-- | generic/tkWindow.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkWindow.c b/generic/tkWindow.c index f2e98e8..4ac2849 100644 --- a/generic/tkWindow.c +++ b/generic/tkWindow.c @@ -3175,7 +3175,7 @@ Initialize( TkpGetAppName(interp, &class); offset = Tcl_DStringLength(&class)+1; - Tcl_DStringSetLength(&class, offset); + Tcl_DStringSetLength(&class, 2*offset); Tcl_DStringAppend(&class, Tcl_DStringValue(&class), offset-1); name = Tcl_DStringValue(&class) + offset; } else { |