aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-08-07 17:38:38 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-08-07 17:38:38 +0200
commitf3c6724830cc6100df6a8eebd2db5b6dd814935c (patch)
tree8bfb5f9570b7ce4a330e3976dd63e8a07cbf8aea
parente2679e44234f24d9a8c4cb4d64d531e9fc03d455 (diff)
downloadmblaze-f3c6724830cc6100df6a8eebd2db5b6dd814935c.tar.gz
seq: parse_parent: bump previndent size
-rw-r--r--seq.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/seq.c b/seq.c
index de1d24c..d30e4ee 100644
--- a/seq.c
+++ b/seq.c
@@ -286,7 +286,7 @@ parse_parent(char *map, long *starto, long *stopo)
char *s, *t;
long line;
- int previndent[32] = { 0 };
+ int previndent[256] = { 0 };
for (s = map, line = 0; s; s = t+1) {
t = strchr(s, '\n');
@@ -298,8 +298,8 @@ parse_parent(char *map, long *starto, long *stopo)
s++;
indent++;
}
- if (indent > 31)
- indent = 31;
+ if (indent > 255)
+ indent = 255;
previndent[indent] = line;
if (line == *starto) {
if (previndent[indent-1]) {