ref: 635437b9aff2c875234d761455180a35d6dc2e8f
parent: f8b8ee82fcba2b7ef684ce8e6139927213be8fe7
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Feb 24 23:15:43 EST 2019
cc: fix %.*s format usage in lexer "token too long" error
--- a/sys/src/cmd/cc/lex.c
+++ b/sys/src/cmd/cc/lex.c
@@ -937,7 +937,7 @@
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;
}
--
⑨