diff options
Diffstat (limited to 'generic/tclScan.c')
| -rw-r--r-- | generic/tclScan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclScan.c b/generic/tclScan.c index 9c9137c..054d935 100644 --- a/generic/tclScan.c +++ b/generic/tclScan.c @@ -267,7 +267,7 @@ ValidateFormat( * these are messy operations because we do * not want to use the formatting engine; * we're inside there! */ - char buf[TCL_UTF_MAX + 1] = ""; + char buf[5] = ""; /* * Initialize an array that records the number of times a variable is @@ -880,7 +880,7 @@ Tcl_ScanObjCmd( offset = TclUtfToUniChar(string, &sch); i = (int)sch; -#if TCL_UTF_MAX <= 4 +#if TCL_UTF_MAX <= 3 if ((sch >= 0xD800) && (offset < 3)) { offset += TclUtfToUniChar(string+offset, &sch); i = (((i<<10) & 0x0FFC00) + 0x10000) + (sch & 0x3FF); |
