diff options
author | dgp@users.sourceforge.net <dgp> | 2016-06-22 18:10:17 (GMT) |
---|---|---|
committer | dgp@users.sourceforge.net <dgp> | 2016-06-22 18:10:17 (GMT) |
commit | 91bc4a0a5de745447ed59e4d08021d5a542afb00 (patch) | |
tree | 540197ec58e95cf6325836ad73fee3aa8720a20f | |
parent | a1af61bea80bfd046f1e2cf7f28c724417fd31b3 (diff) | |
parent | d6c0adfa422c1e50ec5be1d35424d48c1b7a94ae (diff) | |
download | tk-91bc4a0a5de745447ed59e4d08021d5a542afb00.zip tk-91bc4a0a5de745447ed59e4d08021d5a542afb00.tar.gz tk-91bc4a0a5de745447ed59e4d08021d5a542afb00.tar.bz2 |
[787adc5ed7] Workaround potential crash in Tcl_DStringAppend.
-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 b5cbbab..9977ac5 100644 --- a/generic/tkWindow.c +++ b/generic/tkWindow.c @@ -3198,7 +3198,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 { |