fix crash with get_tok_str() in skip()
crash was triggered by numbers etc. as unexpected token, i.e. everything that requires additional information with the token.
This commit is contained in:
parent
e3e5d4ad7a
commit
2775173d4d
1 changed files with 1 additions and 1 deletions
2
tccpp.c
2
tccpp.c
|
@ -90,7 +90,7 @@ static void macro_subst(
|
|||
ST_FUNC void skip(int c)
|
||||
{
|
||||
if (tok != c)
|
||||
error("'%c' expected (got \"%s\")", c, get_tok_str(tok, NULL));
|
||||
error("'%c' expected (got \"%s\")", c, get_tok_str(tok, &tokc));
|
||||
next();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue