make max_connect static as in the original diffreg.c This way we grow the array instead of doing 64 <<= 1.
diff --git a/lib/diffreg.c b/lib/diffreg.c
index f4be6a4..cb18b5a 100644
--- a/lib/diffreg.c
+++ b/lib/diffreg.c
@@ -966,7 +966,7 @@ change(FILE *outfile, struct got_diff_state *ds, struct got_diff_args *args,
const char *file1, FILE *f1, const char *file2, FILE *f2,
int a, int b, int c, int d, int *pflags)
{
- size_t max_context = 64;
+ static size_t max_context = 64;
int i;
restart: