diff options
author | nijtmans@users.sourceforge.net <jan.nijtmans> | 2016-09-19 10:14:52 (GMT) |
---|---|---|
committer | nijtmans@users.sourceforge.net <jan.nijtmans> | 2016-09-19 10:14:52 (GMT) |
commit | 06e86eac45f9edaa47e0a8de86a428355efc652d (patch) | |
tree | 011764b9a1c9b1b47f5d61b56f1627526961f832 /generic/tkEntry.c | |
parent | 289a1f9409c3a5c99e36925f03faa4fd06f22400 (diff) | |
download | tk-tip_389.zip tk-tip_389.tar.gz tk-tip_389.tar.bz2 |
More simplificationstip_389
Diffstat (limited to 'generic/tkEntry.c')
-rw-r--r-- | generic/tkEntry.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tkEntry.c b/generic/tkEntry.c index a66cf18..34f11d2 100644 --- a/generic/tkEntry.c +++ b/generic/tkEntry.c @@ -1926,8 +1926,8 @@ EntryComputeGeometry( */ if (entryPtr->showChar != NULL) { - Tcl_UniChar ch; - char buf[4]; + int ch; + char buf[6]; int size; /* @@ -1937,8 +1937,8 @@ EntryComputeGeometry( * resulting string. */ - Tcl_UtfToUniChar(entryPtr->showChar, &ch); - size = Tcl_UniCharToUtf(ch, buf); + TkUtfToUniChar(entryPtr->showChar, &ch); + size = TkUniCharToUtf(ch, buf); entryPtr->numDisplayBytes = entryPtr->numChars * size; p = ckalloc(entryPtr->numDisplayBytes + 1); |