summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorculler <culler>2019-01-03 16:20:11 (GMT)
committerculler <culler>2019-01-03 16:20:11 (GMT)
commitc5533b50401ae20076e2f06f0fe531aa1eabc626 (patch)
treee30e309c9895bc0e21b4e694bc1b5febd49f72d1
parentfdff725f6e80729db8dc083c84b8be2aba1e5539 (diff)
downloadtk-c5533b50401ae20076e2f06f0fe531aa1eabc626.zip
tk-c5533b50401ae20076e2f06f0fe531aa1eabc626.tar.gz
tk-c5533b50401ae20076e2f06f0fe531aa1eabc626.tar.bz2
Fix two compiler warnings about format string buffers being too small.
-rw-r--r--generic/tkEntry.h2
-rw-r--r--generic/tkScale.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkEntry.h b/generic/tkEntry.h
index 52535c8..15b4c21 100644
--- a/generic/tkEntry.h
+++ b/generic/tkEntry.h
@@ -221,7 +221,7 @@ typedef struct {
* value that the users requests. Malloc'ed */
char *valueFormat; /* Sprintf conversion specifier used for the
* value. */
- char digitFormat[10]; /* Sprintf conversion specifier computed from
+ char digitFormat[14]; /* Sprintf conversion specifier computed from
* digits and other information; used for the
* value. */
diff --git a/generic/tkScale.h b/generic/tkScale.h
index 4fd9995..73678ed 100644
--- a/generic/tkScale.h
+++ b/generic/tkScale.h
@@ -73,7 +73,7 @@ typedef struct TkScale {
* values. 0 means we get to choose the number
* based on resolution and/or the range of the
* scale. */
- char format[10]; /* Sprintf conversion specifier computed from
+ char format[14]; /* Sprintf conversion specifier computed from
* digits and other information. */
double bigIncrement; /* Amount to use for large increments to scale
* value. (0 means we pick a value). */