summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--builtin-pickaxe.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/builtin-pickaxe.c b/builtin-pickaxe.c
index 74c7c9a33b..b595299bf8 100644
--- a/builtin-pickaxe.c
+++ b/builtin-pickaxe.c
@@ -1085,6 +1085,9 @@ static int prepare_lines(struct scoreboard *sb)
bol = 1;
}
}
+ sb->lineno = xrealloc(sb->lineno,
+ sizeof(int* ) * (num + incomplete + 1));
+ sb->lineno[num + incomplete] = buf - sb->final_buf;
sb->num_lines = num + incomplete;
return sb->num_lines;
}