From c44af337ce1c0d23c8862fcc1e95d257c593dd70 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Sun, 27 Jan 2008 17:10:29 +0000 Subject: Add assertion that we do not blow out newl --- Parser/tokenizer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c index 257ef1c..1314f5f 100644 --- a/Parser/tokenizer.c +++ b/Parser/tokenizer.c @@ -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; -- cgit v0.12