Add assertion that we do not blow out newl

This commit is contained in:
Neal Norwitz 2008-01-27 17:10:29 +00:00
parent e7bb9188f4
commit c44af337ce

View file

@ -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;