pretty: use prefixcmp instead of memcmp on NUL-terminated strings
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>
Mon, 14 Jan 2013 16:34:56 +0000 (17:34 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 14 Jan 2013 17:59:27 +0000 (09:59 -0800)
This conversion avoids the need for magic string length numbers in the
code. And unlike memcmp(), prefixcmp() is careful to not run over the
end of a string.

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found