summaryrefslogtreecommitdiffstats
path: root/generic/tkText.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2011-03-28 09:22:36 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2011-03-28 09:22:36 (GMT)
commit7387fa79447f5c555210e792e3365b5044f2615f (patch)
treecb0ff7b9ac8461c4ab3dad4e641d40ba9f4ea27f /generic/tkText.h
parent4c27d6de89b1c4914949d474c61050e8839aa150 (diff)
parent2ddbd4ef22b8a849feab79bef67301fa85f2c5ea (diff)
downloadtk-7387fa79447f5c555210e792e3365b5044f2615f.zip
tk-7387fa79447f5c555210e792e3365b5044f2615f.tar.gz
tk-7387fa79447f5c555210e792e3365b5044f2615f.tar.bz2
[Bug 3129527]: Fix buffer overflow w/ GCC 4.5 and -D_FORTIFY_SOURCE=2. One more place where this problem could appear.
Diffstat (limited to 'generic/tkText.h')
-rw-r--r--generic/tkText.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkText.h b/generic/tkText.h
index da9611f..2aa80c2 100644
--- a/generic/tkText.h
+++ b/generic/tkText.h
@@ -170,7 +170,7 @@ typedef struct TkTextSegment {
int size; /* Size of this segment (# of bytes of index
* space it occupies). */
union {
- char chars[4]; /* Characters that make up character info.
+ char chars[1]; /* Characters that make up character info.
* Actual length varies to hold as many
* characters as needed.*/
TkTextToggle toggle; /* Information about tag toggle. */