Remove last character check as it should never be true now
authorRobert Pengelly <robertapengelly@hotmail.com>
Fri, 3 Oct 2025 06:05:05 +0000 (07:05 +0100)
committerRobert Pengelly <robertapengelly@hotmail.com>
Fri, 3 Oct 2025 06:05:05 +0000 (07:05 +0100)
unzip.c

diff --git a/unzip.c b/unzip.c
index 118a18a7bae3906c77d5cecf62f73879ac11c162..6d46e596278af85a4135c47965afa9221202c1a8 100755 (executable)
--- a/unzip.c
+++ b/unzip.c
@@ -759,10 +759,6 @@ static void extract_zip (const char *path) {
             
             }
             
-            if (temp[strlen (temp) - 1] == ch) {
-                temp[strlen (temp) - 1] = '\0';
-            }
-            
 #if     defined (unix) || defined (__unix) || defined (__unix__) || defined (__APPLE__)
 
             if (!stat (temp, &sb)) {