diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-11-21 10:26:09 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-11-21 10:26:09 (GMT) |
commit | 30f0774da2cecd4a02f773758fcf81c45cf3fdab (patch) | |
tree | 82755813733ceeb3d35582f7b4b346efe3fc2196 /generic/ttk | |
parent | ae5544272b6b41becb2c807fc5022a288ba42274 (diff) | |
download | tk-30f0774da2cecd4a02f773758fcf81c45cf3fdab.zip tk-30f0774da2cecd4a02f773758fcf81c45cf3fdab.tar.gz tk-30f0774da2cecd4a02f773758fcf81c45cf3fdab.tar.bz2 |
Now that TkUniCharToUtf() produces maximum of 4 bytes, reduce storage. More code simplifications.
Disallow Emoji on X11 without xft, just use replacement character then.
Diffstat (limited to 'generic/ttk')
-rw-r--r-- | generic/ttk/ttkEntry.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/ttk/ttkEntry.c b/generic/ttk/ttkEntry.c index 1579a32..4862e99 100644 --- a/generic/ttk/ttkEntry.c +++ b/generic/ttk/ttkEntry.c @@ -279,7 +279,7 @@ static char *EntryDisplayString(const char *showChar, int numChars) char *displayString, *p; int size; int ch; - char buf[6]; + char buf[4]; TkUtfToUniChar(showChar, &ch); size = TkUniCharToUtf(ch, buf); |