cc: fix %.*s format usage in lexer "token too long" error

This commit is contained in:
cinap_lenrek 2019-02-25 04:15:43 +01:00
parent ac3e3c342f
commit 5d58b9573c

View file

@ -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;
}