ref: 454a6a438efbd66d3e9e74b3e49512699dac1762
parent: 2989b27ec70e6b762a3766a723ebeeff3617ad8e
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;
}