diff options
| -rw-r--r-- | sys/src/cmd/cc/lex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/cc/lex.c b/sys/src/cmd/cc/lex.c index bc05f3d1b..7c6fe563a 100644 --- a/sys/src/cmd/cc/lex.c +++ b/sys/src/cmd/cc/lex.c @@ -937,7 +937,7 @@ caseout: return LDCONST; toolong: - yyerror("token too long: %.*s...", (int)(cp-symb), symb); + yyerror("token too long: %.*s...", utfnlen(symb, cp-symb), symb); errorexit(); return -1; } |
