diff options
Diffstat (limited to '')
| -rw-r--r-- | libpatch_parse_unified_patch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpatch_parse_unified_patch.c b/libpatch_parse_unified_patch.c index d92d419..490bb96 100644 --- a/libpatch_parse_unified_patch.c +++ b/libpatch_parse_unified_patch.c @@ -6,7 +6,7 @@ static size_t hunk_head_part(const char *text, size_t len, size_t *first, size_t *count) { size_t off, r; - off = libpatch_get_zu__(&text[off], len - off, first); + off = libpatch_get_zu__(&text, len, first); if (!off) return 0; if (off < len && text[off] == ',') { |
