exclude: stricten a length check in EXC_FLAG_ENDSWITH case
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Mon, 15 Oct 2012 06:24:34 +0000 (13:24 +0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 15 Oct 2012 21:57:16 +0000 (14:57 -0700)
commit692663303f67371a2e4af4e3d353b042f754c036
tree6f0f7962d21985454d734a9179f00f4b134d678f
parent68bdfd7cdc634693320486c06400b60abe92302b
exclude: stricten a length check in EXC_FLAG_ENDSWITH case

This block of code deals with the "basename" part only, which has the
length of "pathlen - (basename - pathname)". Stricten the length check
and remove "pathname" from the main expression to avoid confusion.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
dir.c