diff options
author | culler <culler> | 2019-01-03 16:20:11 (GMT) |
---|---|---|
committer | culler <culler> | 2019-01-03 16:20:11 (GMT) |
commit | c5533b50401ae20076e2f06f0fe531aa1eabc626 (patch) | |
tree | e30e309c9895bc0e21b4e694bc1b5febd49f72d1 | |
parent | fdff725f6e80729db8dc083c84b8be2aba1e5539 (diff) | |
download | tk-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.h | 2 | ||||
-rw-r--r-- | generic/tkScale.h | 2 |
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). */ |