diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-09-09 06:19:53 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-09-09 06:19:53 (GMT) |
commit | abc19613ce37f3616bce34410b1b00b69c8a0de3 (patch) | |
tree | e980299621e8c357a63466bd65039f605c3dccb0 /generic | |
parent | 311efb2355355e5bcc6596c702c5cad288cabd5a (diff) | |
download | tk-abc19613ce37f3616bce34410b1b00b69c8a0de3.zip tk-abc19613ce37f3616bce34410b1b00b69c8a0de3.tar.gz tk-abc19613ce37f3616bce34410b1b00b69c8a0de3.tar.bz2 |
Attempt to fix [3bc0f44ef3]: UBSan complains about body.chars[] usage.
Don't know if all (older) compilers, like VC++ 6.0, accept this.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkText.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkText.h b/generic/tkText.h index 75cab59..61a2a53 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[0]; /* Characters that make up character info. * Actual length varies to hold as many * characters as needed.*/ TkTextToggle toggle; /* Information about tag toggle. */ |