diff options
author | René Scharfe <l.s.r@web.de> | 2016-05-28 18:20:23 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-05-29 17:10:05 -0700 |
commit | 2bb73ae8037ae6fd82f002257d04f8cda2a721cd (patch) | |
tree | 1378704186665446d414d87be1fbf8055f238f97 /color.h | |
parent | Git 2.4.11 (diff) | |
download | tgif-2bb73ae8037ae6fd82f002257d04f8cda2a721cd.tar.xz |
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 'color.h')
0 files changed, 0 insertions, 0 deletions