diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-02-25 04:15:43 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-02-25 04:15:43 +0100 |
commit | 5d58b9573cc4ea97f569735c1a61be48c27e6728 (patch) | |
tree | b2148bb29059536156d8ad76e497deb3bb018d4b /sys/src/cmd/cc | |
parent | ac3e3c342fc32cd633599d85391827289b7ebdf5 (diff) |
cc: fix %.*s format usage in lexer "token too long" error
Diffstat (limited to 'sys/src/cmd/cc')
-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; } |