aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-02-28 13:48:56 +0100
committerMattias Andrée <m@maandree.se>2026-02-28 13:49:03 +0100
commitcedae3b775d65526140718808ed48df672d1680f (patch)
tree12873a5f621c6c1605715f8a13a650a392a373ed
parentfix grammar (diff)
downloadlibpatch-cedae3b775d65526140718808ed48df672d1680f.tar.gz
libpatch-cedae3b775d65526140718808ed48df672d1680f.tar.bz2
libpatch-cedae3b775d65526140718808ed48df672d1680f.tar.xz
Diffstat (limited to '')
-rw-r--r--libpatch_parse_unified_patch.c2
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] == ',') {