apply: fix binary patch detection.
authorJunio C Hamano <junkio@cox.net>
Tue, 15 Nov 2005 01:15:07 +0000 (17:15 -0800)
committerJunio C Hamano <junkio@cox.net>
Tue, 15 Nov 2005 01:15:07 +0000 (17:15 -0800)
commit9add69b1b1f76db874ed899c46fbe0b252aa3c23
treef2f66041e72c49a6badf3451e642ffdd507c35c2
parent2ed02887bda74871bad64f1be36fb4f60d07706e
apply: fix binary patch detection.

The comparison to find "Binary files " string was looking at a
wrong place when offset != 0.

Also, we may have the full 40-byte textual sha1 on the index
line; two off-by-one errors prevented it.

Signed-off-by: Junio C Hamano <junkio@cox.net>
apply.c