From: ceriel Date: Wed, 22 Oct 1986 15:30:46 +0000 (+0000) Subject: Error messages are printed differently now. A '%' in an error message X-Git-Tag: release-5-5~5181 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=aac1207beb763dc411a0d91d6a4a550ebf710a5e;p=ack.git Error messages are printed differently now. A '%' in an error message used to cause difficulties. --- 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