aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
Diffstat (limited to 'toys')
-rw-r--r--toys/posix/patch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/toys/posix/patch.c b/toys/posix/patch.c
index f36b18f7..a19cc8d3 100644
--- a/toys/posix/patch.c
+++ b/toys/posix/patch.c
@@ -128,7 +128,8 @@ static int loosecmp(char *aa, char *bb)
while (isspace(bb[b])) b++;
if (aa[a] != bb[b]) return 1;
if (!aa[a]) return 0;
- }
+ a++, b++;
+ }
}
// Given a hunk of a unified diff, make the appropriate change to the file.