Mercurial > hg > toybox
diff toys/posix/patch.c @ 673:c102f31a753e
Missing line in patch -l. Oops.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 07 Oct 2012 23:53:25 -0500 |
parents | e2ebaf211a0f |
children | 7e846e281e38 |
line wrap: on
line diff
--- a/toys/posix/patch.c Sun Oct 07 22:57:27 2012 -0500 +++ b/toys/posix/patch.c Sun Oct 07 23:53:25 2012 -0500 @@ -128,7 +128,8 @@ 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.