summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2014-10-30 15:16:37 (GMT)
committerdgp <dgp@users.sourceforge.net>2014-10-30 15:16:37 (GMT)
commitfc77a30223d683708ec4aeadbf6dde442f4f402f (patch)
tree96d54249d6fe3ce0e844f00f245ec68bd1bc653a /unix
parent624dbd57c279976ac04e288cf6d64f632e9f410c (diff)
parent62f95363c9ba45b862bc5ed40e933acc38925edf (diff)
downloadtk-fc77a30223d683708ec4aeadbf6dde442f4f402f.zip
tk-fc77a30223d683708ec4aeadbf6dde442f4f402f.tar.gz
tk-fc77a30223d683708ec4aeadbf6dde442f4f402f.tar.bz2
[3417012] Stop [scale] segfault when -digits too big.
Diffstat (limited to 'unix')
-rw-r--r--unix/tkUnixScale.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/unix/tkUnixScale.c b/unix/tkUnixScale.c
index e158549..71f9ea8 100644
--- a/unix/tkUnixScale.c
+++ b/unix/tkUnixScale.c
@@ -262,7 +262,7 @@ DisplayVerticalValue(
{
register Tk_Window tkwin = scalePtr->tkwin;
int y, width, length;
- char valueString[PRINT_CHARS];
+ char valueString[TCL_DOUBLE_SPACE];
Tk_FontMetrics fm;
Tk_GetFontMetrics(scalePtr->tkfont, &fm);
@@ -341,7 +341,7 @@ DisplayHorizontalScale(
*/
if (tickInterval != 0) {
- char valueString[PRINT_CHARS];
+ char valueString[TCL_DOUBLE_SPACE];
double ticks, maxTicks;
/*
@@ -478,7 +478,7 @@ DisplayHorizontalValue(
{
register Tk_Window tkwin = scalePtr->tkwin;
int x, y, length, width;
- char valueString[PRINT_CHARS];
+ char valueString[TCL_DOUBLE_SPACE];
Tk_FontMetrics fm;
x = TkScaleValueToPixel(scalePtr, value);
@@ -535,7 +535,7 @@ TkpDisplayScale(
Tcl_Interp *interp = scalePtr->interp;
Pixmap pixmap;
int result;
- char string[PRINT_CHARS];
+ char string[TCL_DOUBLE_SPACE];
XRectangle drawnArea;
scalePtr->flags &= ~REDRAW_PENDING;