Error messages are printed differently now. A '%' in an error message

used to cause difficulties.
This commit is contained in:
ceriel 1986-10-22 15:30:46 +00:00
parent c19358ee50
commit aac1207beb

View file

@ -413,7 +413,11 @@ LLmessage(d) {
s = cpy(LLsymb,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) { /*
* Save the current token and make up some
* attributes for the inserted token