aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2012-10-07 23:53:25 -0500
committerRob Landley <rob@landley.net>2012-10-07 23:53:25 -0500
commitdc7a77d1940858495f76998f4d13cac9f73e0226 (patch)
tree3e7ff726bcdf6120515042ebc46430dd5b586e5e /toys
parent7bc8f5e9d1e2c20ec47af07cd2038cf30ce8e9a8 (diff)
downloadtoybox-dc7a77d1940858495f76998f4d13cac9f73e0226.tar.gz
Missing line in patch -l. Oops.
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.