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)
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>
No differences found