ref: fc7a74ca128331bed45b986d828a317071dc5cde
parent: 02f19e5b2e6a94199d6eb9a97417e1feb3b2d0aa
author: Ori Bernstein <[email protected]>
date: Mon Dec 29 17:11:53 EST 2014
Fix a buggy usage of lfatal() we were passing a null string. oshit.
--- a/parse/tok.c
+++ b/parse/tok.c
@@ -110,7 +110,7 @@
curloc.line++;
break;
case End:
- lfatal(curloc, 0, "File ended within comment starting at line %d", startln);
+ lfatal(curloc, "File ended within comment starting at line %d", startln);
break;
}
if (depth == 0)
@@ -618,7 +618,7 @@
break;
default:
tt = Terror;
- lfatal(curloc, 0, "Junk character %c", c);
+ lfatal(curloc, "Junk character %c", c);
break;
}
return mktok(tt);
@@ -648,10 +648,10 @@
if (c == '.')
isfloat = 1;
else if (hexval(c) < 0 || hexval(c) > base)
- lfatal(curloc, 0, "Integer digit '%c' outside of base %d", c, base);
+ lfatal(curloc, "Integer digit '%c' outside of base %d", c, base);
if (nbuf >= sizeof buf) {
buf[nbuf-1] = '\0';
- lfatal(curloc, 0, "number %s... too long to represent", buf);
+ lfatal(curloc, "number %s... too long to represent", buf);
}
buf[nbuf++] = c;
}