update read error message

This commit is contained in:
Yuichi Nishiwaki 2014-03-03 23:02:52 +09:00
parent 2cdcbb150a
commit 5d4d90228d
1 changed files with 2 additions and 2 deletions

View File

@ -167,7 +167,7 @@ read_one(yyscan_t scanner)
int tok;
if (setjmp(yyjmp) != 0) {
pic_errorf(pic, "read-error: %s", yymsg ? yymsg : "unexpected EOF");
pic_errorf(pic, "%s", yymsg ? yymsg : "unexpected EOF");
}
if ((tok = gettok(scanner)) == tEOF) {
@ -184,7 +184,7 @@ read_many(yyscan_t scanner)
if (setjmp(yyjmp) != 0) {
if (yymsg) {
pic_errorf(pic, "read-error: %s", yymsg);
pic_errorf(pic, "%s", yymsg);
}
return pic_undef_value(); /* incomplete string */
}