diff options
| author | René Scharfe <rene.scharfe@lsrfire.ath.cx> | 2013-01-14 17:34:56 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2013-01-14 09:59:27 -0800 |
| commit | 8a692d277795e426167d76d652cf86656c9c162e (patch) | |
| tree | 4562e0ed76daf30280fdd72b2c39f52d6226dbdc /string-list.c | |
| parent | log --format: teach %C(auto,black) to respect color config (diff) | |
| download | git-8a692d277795e426167d76d652cf86656c9c162e.tar.gz git-8a692d277795e426167d76d652cf86656c9c162e.zip | |
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>
Diffstat (limited to 'string-list.c')
0 files changed, 0 insertions, 0 deletions
