Error messages are printed differently now. A '%' in an error message
authorceriel <none@none>
Wed, 22 Oct 1986 15:30:46 +0000 (15:30 +0000)
committerceriel <none@none>
Wed, 22 Oct 1986 15:30:46 +0000 (15:30 +0000)
used to cause difficulties.

util/LLgen/src/tokens.g

index 321a9de..1248a5d 100644 (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