diff options
author | René Scharfe <l.s.r@web.de> | 2016-05-28 16:20:23 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-05-30 00:10:05 (GMT) |
commit | 2bb73ae8037ae6fd82f002257d04f8cda2a721cd (patch) | |
tree | 1378704186665446d414d87be1fbf8055f238f97 /bisect.h | |
parent | 765428699a5381f113d19974720bc91b5bfeaf1d (diff) | |
download | git-2bb73ae8037ae6fd82f002257d04f8cda2a721cd.zip git-2bb73ae8037ae6fd82f002257d04f8cda2a721cd.tar.gz git-2bb73ae8037ae6fd82f002257d04f8cda2a721cd.tar.bz2 |
patch-id: use starts_with() and skip_prefix()
Get rid of magic numbers and avoid running over the end of a NUL
terminated string by using starts_with() and skip_prefix() instead
of memcmp().
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'bisect.h')
0 files changed, 0 insertions, 0 deletions