summaryrefslogtreecommitdiffstats
path: root/generic/tkText.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-09-11 08:56:31 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-09-11 08:56:31 (GMT)
commit4a8b7efd011cd0b919533728fcb8d6697bafd271 (patch)
tree10068d4fd2b33288abf2b3ea6339b4b86f25819b /generic/tkText.h
parent0d9815b244b0073e85619a33eeed5041def2dc5b (diff)
parentdb31b9f1cedb54fbdc52442ea1c21bf06c556b68 (diff)
downloadtk-4a8b7efd011cd0b919533728fcb8d6697bafd271.zip
tk-4a8b7efd011cd0b919533728fcb8d6697bafd271.tar.gz
tk-4a8b7efd011cd0b919533728fcb8d6697bafd271.tar.bz2
Merge 8.6
Diffstat (limited to 'generic/tkText.h')
-rw-r--r--generic/tkText.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkText.h b/generic/tkText.h
index 75cab59..e9e6303 100644
--- a/generic/tkText.h
+++ b/generic/tkText.h
@@ -168,7 +168,7 @@ typedef struct TkTextSegment {
TkSizeT size; /* Size of this segment (# of bytes of index
* space it occupies). */
union {
- char chars[2]; /* Characters that make up character info.
+ char chars[TKFLEXARRAY]; /* Characters that make up character info.
* Actual length varies to hold as many
* characters as needed.*/
TkTextToggle toggle; /* Information about tag toggle. */
@@ -489,7 +489,7 @@ typedef struct TkTextTabArray {
double tabIncrement; /* The accurate fractional pixel increment
* between interpolated tabs we have to create
* when we exceed numTabs. */
- TkTextTab tabs[1]; /* Array of tabs. The actual size will be
+ TkTextTab tabs[TKFLEXARRAY];/* Array of tabs. The actual size will be
* numTabs. THIS FIELD MUST BE THE LAST IN THE
* STRUCTURE. */
} TkTextTabArray;