Commit e5a145c3 authored by Neal Norwitz's avatar Neal Norwitz

Add assertion that we do not blow out newl

parent ac85eb33
......@@ -605,6 +605,7 @@ decode_str(const char *str, struct tok_state *tok)
for (s = str;; s++) {
if (*s == '\0') break;
else if (*s == '\n') {
assert(lineno < 2);
newl[lineno] = s;
lineno++;
if (lineno == 2) break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment