commit | 8a692d277795e426167d76d652cf86656c9c162e | [log] [tgz] |
---|---|---|
author | René Scharfe <rene.scharfe@lsrfire.ath.cx> | Mon Jan 14 17:34:56 2013 +0100 |
committer | Junio C Hamano <gitster@pobox.com> | Mon Jan 14 09:59:27 2013 -0800 |
tree | 4562e0ed76daf30280fdd72b2c39f52d6226dbdc | |
parent | 30825178fb72e3664bd1bda7c02c62e300e2e5ce [diff] |
pretty: use prefixcmp instead of memcmp on NUL-terminated strings 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>