Fix check
authorRobert Pengelly <robertapengelly@hotmail.com>
Fri, 3 Oct 2025 06:24:18 +0000 (07:24 +0100)
committerRobert Pengelly <robertapengelly@hotmail.com>
Fri, 3 Oct 2025 06:24:18 +0000 (07:24 +0100)
unzip.c

diff --git a/unzip.c b/unzip.c
index 6d46e596278af85a4135c47965afa9221202c1a8..060a609c9551450af914fd43620d7fcc35fce1e0 100755 (executable)
--- 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;
     }