diff --git a/util/LLgen/src/tokens.g b/util/LLgen/src/tokens.g index 321a9de80..1248a5d3b 100644 --- a/util/LLgen/src/tokens.g +++ b/util/LLgen/src/tokens.g @@ -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