From cedae3b775d65526140718808ed48df672d1680f Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 28 Feb 2026 13:48:56 +0100 Subject: m fix --- libpatch_parse_unified_patch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] == ',') { -- cgit v1.2.3-70-g09d2