diff options
Diffstat (limited to 'add-patch.c')
| -rw-r--r-- | add-patch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/add-patch.c b/add-patch.c index 173a53241e..70242617ef 100644 --- a/add-patch.c +++ b/add-patch.c @@ -342,7 +342,7 @@ static int parse_hunk_header(struct add_p_state *s, struct hunk *hunk) { struct hunk_header *header = &hunk->header; const char *line = s->plain.buf + hunk->start, *p = line; - char *eol = memchr(p, '\n', s->plain.len - hunk->start); + const char *eol = memchr(p, '\n', s->plain.len - hunk->start); if (!eol) eol = s->plain.buf + s->plain.len; |
