From: Robert Pengelly Date: Fri, 3 Oct 2025 06:05:05 +0000 (+0100) Subject: Remove last character check as it should never be true now X-Git-Url: https://git.candlhat.org/?a=commitdiff_plain;h=92b0acac6e03eca697622e4f04ddf8213a0c7a22;p=unzip.git Remove last character check as it should never be true now --- diff --git a/unzip.c b/unzip.c index 118a18a..6d46e59 100755 --- 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)) {