mingw: avoid a buffer overrun in `needs_hiding()`
authorJohannes Schindelin <redacted>
Fri, 25 Oct 2019 14:13:36 +0000 (14:13 +0000)
committerJunio C Hamano <redacted>
Mon, 28 Oct 2019 03:38:51 +0000 (12:38 +0900)
commit60e6569a1207d75a351684e2c48f8d18d15a0032
treefab1f1f9aff26cdc1522c9837a51eab82815ba1f
parent5fa0f5238b0cd46cfe7f6fa76c3f526ea98148d9
mingw: avoid a buffer overrun in `needs_hiding()`

When this function is passed a path with a trailing slash, it runs right
over the end of that path.

Let's fix this.

Co-authored-by: Alexandr Miloslavskiy <redacted>
Signed-off-by: Johannes Schindelin <redacted>
Signed-off-by: Junio C Hamano <redacted>
compat/mingw.c
git clone https://git.99rst.org/PROJECT