@ -56,13 +56,13 @@ static int scan_hunk_header(const char *p, int *p_before, int *p_after)
@@ -56,13 +56,13 @@ static int scan_hunk_header(const char *p, int *p_before, int *p_after)
return 1;
}
static int get_one_patchid(unsigned char *next_sha1, git_SHA_CTX *ctx)
static int get_one_patchid(unsigned char *next_sha1, git_SHA_CTX *ctx, struct strbuf *line_buf)
{
static char line[1000];
int patchlen = 0, found_next = 0;
int before = -1, after = -1;
while (fgets(line, sizeof(line), stdin) != NULL) {
while (strbuf_getwholeline(line_buf, stdin, '\n') != EOF) {