patch-id: use starts_with() and skip_prefix()
commit2bb73ae8037ae6fd82f002257d04f8cda2a721cd
authorRené Scharfe <l.s.r@web.de>
Sat, 28 May 2016 16:20:23 +0000 (28 18:20 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 30 May 2016 00:10:05 +0000 (29 17:10 -0700)
tree1378704186665446d414d87be1fbf8055f238f97
parent765428699a5381f113d19974720bc91b5bfeaf1d
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>
builtin/patch-id.c