Error messages are printed differently now. A '%' in an error message
used to cause difficulties.
This commit is contained in:
parent
55dd98fd3c
commit
935a12a56e
@ -413,7 +413,11 @@ LLmessage(d) {
|
|||||||
s = cpy(LLsymb,s,0);
|
s = cpy(LLsymb,s,0);
|
||||||
*s = '\0';
|
*s = '\0';
|
||||||
}
|
}
|
||||||
error(linecount,buf);
|
error(linecount, "%s", buf);
|
||||||
|
/* Don't change this line to
|
||||||
|
* error(linecount, buf).
|
||||||
|
* The string in "buf" might contain '%' ...
|
||||||
|
*/
|
||||||
if (d) { /*
|
if (d) { /*
|
||||||
* Save the current token and make up some
|
* Save the current token and make up some
|
||||||
* attributes for the inserted token
|
* attributes for the inserted token
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user