cc: fix %.*s format usage in lexer "token too long" error
This commit is contained in:
parent
ac3e3c342f
commit
5d58b9573c
1 changed files with 1 additions and 1 deletions
|
@ -937,7 +937,7 @@ caseout:
|
||||||
return LDCONST;
|
return LDCONST;
|
||||||
|
|
||||||
toolong:
|
toolong:
|
||||||
yyerror("token too long: %.*s...", (int)(cp-symb), symb);
|
yyerror("token too long: %.*s...", utfnlen(symb, cp-symb), symb);
|
||||||
errorexit();
|
errorexit();
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue