From: Robert Pengelly Date: Fri, 3 Oct 2025 06:24:18 +0000 (+0100) Subject: Fix check X-Git-Url: https://git.candlhat.org/?a=commitdiff_plain;h=20b069def22fcdce878725db8b8052ee5237c9f7;p=unzip.git Fix check --- diff --git a/unzip.c b/unzip.c index 6d46e59..060a609 100755 --- a/unzip.c +++ b/unzip.c @@ -479,9 +479,7 @@ static int is_relative (const char *name, uint64_t name_len) { } - i = name_len - 1; - - if (name[-i] == ' ' || name[i] == '.') { + if (name[i - 1] == ' ' || name[i - 1] == '.') { return 0; }