From dc7a77d1940858495f76998f4d13cac9f73e0226 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 7 Oct 2012 23:53:25 -0500 Subject: Missing line in patch -l. Oops. --- toys/posix/patch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'toys/posix/patch.c') 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. -- cgit v1.2.3