rerere forget: grok files containing NUL
authorJohannes Sixt <j6t@kdbg.org>
Mon, 1 Apr 2013 21:36:36 +0000 (23:36 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 2 Apr 2013 20:00:41 +0000 (13:00 -0700)
Using 'git rerere forget .' after a merge that involved binary files
runs into an infinite loop if the binary file contains a zero byte.
Replace a strchrnul by memchr because the former does not make progress
as soon as the NUL is encountered.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found