commit d3f36e7e5a4e3424545f38223409b5a246de171a from: Theo Buehler date: Mon Apr 02 14:29:49 2018 UTC make max_connect static as in the original diffreg.c This way we grow the array instead of doing 64 <<= 1. commit - 8d98bcfbe89f15be150c562a2a8b715e456bd7e9 commit + d3f36e7e5a4e3424545f38223409b5a246de171a blob - f4be6a468e5dcbe30919264e204784c7d766e578 blob + cb18b5a459b25b1db5f77fedf61b9ef8d48ac748 --- lib/diffreg.c +++ lib/diffreg.c @@ -966,7 +966,7 @@ change(FILE *outfile, struct got_diff_state *ds, struc 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: