Version 2.2.2.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index aa8888c..4bbdf2f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -26,7 +26,7 @@
 
 project("minizip")
 
-set(VERSION "2.2.1")
+set(VERSION "2.2.2")
 
 # Set cmake debug postfix to d
 set(CMAKE_DEBUG_POSTFIX "d")
diff --git a/Minizip.podspec b/Minizip.podspec
index 8613b72..9a18e3e 100644
--- a/Minizip.podspec
+++ b/Minizip.podspec
@@ -1,6 +1,6 @@
 Pod::Spec.new do |s|
   s.name     = 'Minizip'
-  s.version  = '2.2.1'
+  s.version  = '2.2.2'
   s.license  = 'zlib'
   s.summary  = 'Minizip contrib in zlib with the latest bug fixes and advanced features'
   s.description = <<-DESC
diff --git a/README.md b/README.md
index 431556a..6b6d64b 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# Minizip 2.2.1

+# Minizip 2.2.2

 

 This library is a refactoring of the minizip contribution found in the zlib distribution that is supported on Windows, macOS, and Linux. The motivation for this work has been the inclusion of advanced features, improvements in code maintainability and readability, and the reduction of duplicate code. It is based on the original work of [Gilles Vollant](http://www.winimage.com/zLibDll/minizip.html) that has been contributed to by many people over the years.

 

diff --git a/src/minizip.c b/src/minizip.c
index c2d6a41..a829fec 100755
--- a/src/minizip.c
+++ b/src/minizip.c
@@ -1,5 +1,5 @@
 /* minizip.c
-   Version 2.2.1, October 23rd, 2017
+   Version 2.2.2, October 26th, 2017
    part of the MiniZip project
 
    Copyright (C) 2012-2017 Nathan Moinvaziri
diff --git a/src/mz.h b/src/mz.h
index ede2063..d26be37 100644
--- a/src/mz.h
+++ b/src/mz.h
@@ -1,5 +1,5 @@
 /* mz.h -- Errors codes, zip flags and magic
-   Version 2.2.1, October 23rd, 2017
+   Version 2.2.2, October 26th, 2017
    part of the MiniZip project
 
    Copyright (C) 2012-2017 Nathan Moinvaziri
@@ -19,7 +19,7 @@
 /***************************************************************************/
 
 // MZ_VERSION
-#define MZ_VERSION                      ("2.2.1")
+#define MZ_VERSION                      ("2.2.2")
 
 // MZ_ERROR
 #define MZ_OK                           (0)
diff --git a/src/mz_compat.c b/src/mz_compat.c
index 36e0ec1..dbab172 100644
--- a/src/mz_compat.c
+++ b/src/mz_compat.c
@@ -1,5 +1,5 @@
 /* mz_compat.c -- Backwards compatible interface for older versions
-   Version 2.2.1, October 23rd, 2017
+   Version 2.2.2, October 26th, 2017
    part of the MiniZip project
 
    Copyright (C) 2012-2017 Nathan Moinvaziri
diff --git a/src/mz_compat.h b/src/mz_compat.h
index b592928..6bc5c4c 100644
--- a/src/mz_compat.h
+++ b/src/mz_compat.h
@@ -1,5 +1,5 @@
 /* mz_compat.h -- Backwards compatible interface for older versions
-   Version 2.2.1, October 23rd, 2017
+   Version 2.2.2, October 26th, 2017
    part of the MiniZip project
 
    Copyright (C) 2012-2017 Nathan Moinvaziri
diff --git a/src/mz_os.c b/src/mz_os.c
index faf389b..13dc770 100644
--- a/src/mz_os.c
+++ b/src/mz_os.c
@@ -1,5 +1,5 @@
 /* mz_os.c -- System functions
-   Version 2.2.1, October 23rd, 2017
+   Version 2.2.2, October 26th, 2017
    part of the MiniZip project
 
    Copyright (C) 2012-2017 Nathan Moinvaziri
diff --git a/src/mz_os.h b/src/mz_os.h
index 72f6835..7c49c9a 100644
--- a/src/mz_os.h
+++ b/src/mz_os.h
@@ -1,5 +1,5 @@
 /* mz_os.h -- System functions
-   Version 2.2.1, October 23rd, 2017
+   Version 2.2.2, October 26th, 2017
    part of the MiniZip project
 
    Copyright (C) 2012-2017 Nathan Moinvaziri
diff --git a/src/mz_os_win32.h b/src/mz_os_win32.h
index 9c19a97..be344b2 100644
--- a/src/mz_os_win32.h
+++ b/src/mz_os_win32.h
@@ -1,5 +1,5 @@
 /* mz_os_win32.h -- System functions for Windows
-   Version 2.2.1, October 23rd, 2017
+   Version 2.2.2, October 26th, 2017
    part of the MiniZip project
 
    Copyright (C) 2012-2017 Nathan Moinvaziri
diff --git a/src/mz_strm.c b/src/mz_strm.c
index cfa9446..225b07c 100755
--- a/src/mz_strm.c
+++ b/src/mz_strm.c
@@ -1,5 +1,5 @@
 /* mz_strm.c -- Stream interface
-   Version 2.2.1, October 23rd, 2017
+   Version 2.2.2, October 26th, 2017
    part of the MiniZip project
 
    Copyright (C) 2012-2017 Nathan Moinvaziri
diff --git a/src/mz_strm.h b/src/mz_strm.h
index 5f9fddb..307fb03 100755
--- a/src/mz_strm.h
+++ b/src/mz_strm.h
@@ -1,5 +1,5 @@
 /* mz_strm.h -- Stream interface
-   Version 2.2.1, October 23rd, 2017
+   Version 2.2.2, October 26th, 2017
    part of the MiniZip project
 
    Copyright (C) 2012-2017 Nathan Moinvaziri
diff --git a/src/mz_strm_aes.c b/src/mz_strm_aes.c
index 3202139..9e6a5c9 100644
--- a/src/mz_strm_aes.c
+++ b/src/mz_strm_aes.c
@@ -1,5 +1,5 @@
 /* mz_strm_aes.c -- Stream for WinZip AES encryption
-   Version 2.2.1, October 23rd, 2017
+   Version 2.2.2, October 26th, 2017
    part of the MiniZip project
 
    Copyright (C) 2012-2017 Nathan Moinvaziri
diff --git a/src/mz_strm_aes.h b/src/mz_strm_aes.h
index 8e259f0..df3ce9b 100644
--- a/src/mz_strm_aes.h
+++ b/src/mz_strm_aes.h
@@ -1,5 +1,5 @@
 /* mz_strm_aes.h -- Stream for WinZIP AES encryption
-   Version 2.2.1, October 23rd, 2017
+   Version 2.2.2, October 26th, 2017
    part of the MiniZip project
 
    Copyright (C) 2012-2017 Nathan Moinvaziri
diff --git a/src/mz_strm_buf.c b/src/mz_strm_buf.c
index d52719d..284ae63 100755
--- a/src/mz_strm_buf.c
+++ b/src/mz_strm_buf.c
@@ -1,5 +1,5 @@
 /* mz_strm_buf.c -- Stream for buffering reads/writes
-   Version 2.2.1, October 23rd, 2017
+   Version 2.2.2, October 26th, 2017
    part of the MiniZip project
 
    This version of ioapi is designed to buffer IO.
diff --git a/src/mz_strm_buf.h b/src/mz_strm_buf.h
index b0ae978..ab15441 100644
--- a/src/mz_strm_buf.h
+++ b/src/mz_strm_buf.h
@@ -1,5 +1,5 @@
 /* mz_strm_buf.h -- Stream for buffering reads/writes
-   Version 2.2.1, October 23rd, 2017
+   Version 2.2.2, October 26th, 2017
    part of the MiniZip project
 
    This version of ioapi is designed to buffer IO.
diff --git a/src/mz_strm_bzip.c b/src/mz_strm_bzip.c
index 624d5ae..871d01e 100644
--- a/src/mz_strm_bzip.c
+++ b/src/mz_strm_bzip.c
@@ -1,5 +1,5 @@
 /* mz_strm_bzip.c -- Stream for bzip inflate/deflate
-   Version 2.2.1, October 23rd, 2017
+   Version 2.2.2, October 26th, 2017
    part of the MiniZip project
 
    Copyright (C) 2012-2017 Nathan Moinvaziri
diff --git a/src/mz_strm_bzip.h b/src/mz_strm_bzip.h
index d837ceb..06b423d 100644
--- a/src/mz_strm_bzip.h
+++ b/src/mz_strm_bzip.h
@@ -1,5 +1,5 @@
 /* mz_strm_bzip.h -- Stream for bzip inflate/deflate
-   Version 2.2.1, October 23rd, 2017
+   Version 2.2.2, October 26th, 2017
    part of the MiniZip project
 
    Copyright (C) 2012-2017 Nathan Moinvaziri
diff --git a/src/mz_strm_crypt.c b/src/mz_strm_crypt.c
index 596b8ee..48a94f0 100644
--- a/src/mz_strm_crypt.c
+++ b/src/mz_strm_crypt.c
@@ -1,5 +1,5 @@
 /* mz_strm_crypt.c -- Code for traditional PKWARE encryption
-   Version 2.2.1, October 23rd, 2017
+   Version 2.2.2, October 26th, 2017
    part of the MiniZip project
 
    Copyright (C) 2012-2017 Nathan Moinvaziri
diff --git a/src/mz_strm_crypt.h b/src/mz_strm_crypt.h
index db1e85d..0f72199 100644
--- a/src/mz_strm_crypt.h
+++ b/src/mz_strm_crypt.h
@@ -1,5 +1,5 @@
 /* mz_strm_crypt.h -- Code for traditional PKWARE encryption
-   Version 2.2.1, October 23rd, 2017
+   Version 2.2.2, October 26th, 2017
    part of the MiniZip project
 
    Copyright (C) 2012-2017 Nathan Moinvaziri
diff --git a/src/mz_strm_lzma.c b/src/mz_strm_lzma.c
index ce66963..ef3eb83 100644
--- a/src/mz_strm_lzma.c
+++ b/src/mz_strm_lzma.c
@@ -1,5 +1,5 @@
 /* mz_strm_lzma.c -- Stream for lzma inflate/deflate
-   Version 2.2.1, October 23rd, 2017
+   Version 2.2.2, October 26th, 2017
    part of the MiniZip project
 
    Copyright (C) 2012-2017 Nathan Moinvaziri
diff --git a/src/mz_strm_lzma.h b/src/mz_strm_lzma.h
index 20b7301..69871f5 100644
--- a/src/mz_strm_lzma.h
+++ b/src/mz_strm_lzma.h
@@ -1,5 +1,5 @@
 /* mz_strm_lzma.h -- Stream for lzma inflate/deflate
-   Version 2.2.1, October 23rd, 2017
+   Version 2.2.2, October 26th, 2017
    part of the MiniZip project
 
    Copyright (C) 2012-2017 Nathan Moinvaziri
diff --git a/src/mz_strm_mem.c b/src/mz_strm_mem.c
index f97189f..8b5ce8b 100644
--- a/src/mz_strm_mem.c
+++ b/src/mz_strm_mem.c
@@ -1,5 +1,5 @@
 /* mz_strm_mem.c -- Stream for memory access
-   Version 2.2.1, October 23rd, 2017
+   Version 2.2.2, October 26th, 2017
    part of the MiniZip project
 
    This interface is designed to access memory rather than files.
diff --git a/src/mz_strm_posix.c b/src/mz_strm_posix.c
index d3948cc..4248a0b 100644
--- a/src/mz_strm_posix.c
+++ b/src/mz_strm_posix.c
@@ -1,5 +1,5 @@
 /* mz_strm_posix.c -- Stream for filesystem access for posix/linux
-   Version 2.2.1, October 23rd, 2017
+   Version 2.2.2, October 26th, 2017
    part of the MiniZip project
 
    Copyright (C) 2012-2017 Nathan Moinvaziri
diff --git a/src/mz_strm_posix.h b/src/mz_strm_posix.h
index 35be8a4..fc41d80 100644
--- a/src/mz_strm_posix.h
+++ b/src/mz_strm_posix.h
@@ -1,5 +1,5 @@
 /* mz_strm_posix.h -- Stream for filesystem access for posix/linux
-   Version 2.2.1, October 23rd, 2017
+   Version 2.2.2, October 26th, 2017
    part of the MiniZip project
 
    Copyright (C) 2012-2017 Nathan Moinvaziri
diff --git a/src/mz_strm_split.c b/src/mz_strm_split.c
index abb597b..a1dd160 100644
--- a/src/mz_strm_split.c
+++ b/src/mz_strm_split.c
@@ -1,5 +1,5 @@
 /* mz_strm_split.c -- Stream for split files
-   Version 2.2.1, October 23rd, 2017
+   Version 2.2.2, October 26th, 2017
    part of the MiniZip project
 
    Copyright (C) 2012-2017 Nathan Moinvaziri
diff --git a/src/mz_strm_split.h b/src/mz_strm_split.h
index 11c919b..f93ecd1 100644
--- a/src/mz_strm_split.h
+++ b/src/mz_strm_split.h
@@ -1,5 +1,5 @@
 /* mz_strm_split.h -- Stream for split files
-   Version 2.2.1, October 23rd, 2017
+   Version 2.2.2, October 26th, 2017
    part of MiniZip project
 
    Copyright (C) 2012-2017 Nathan Moinvaziri
diff --git a/src/mz_strm_win32.c b/src/mz_strm_win32.c
index 58750b2..f573d95 100644
--- a/src/mz_strm_win32.c
+++ b/src/mz_strm_win32.c
@@ -1,5 +1,5 @@
 /* mz_strm_win32.c -- Stream for filesystem access for windows
-   Version 2.2.1, October 23rd, 2017
+   Version 2.2.2, October 26th, 2017
    part of the MiniZip project
 
    Copyright (C) 2012-2017 Nathan Moinvaziri
diff --git a/src/mz_strm_win32.h b/src/mz_strm_win32.h
index 1931f73..6b7d07c 100644
--- a/src/mz_strm_win32.h
+++ b/src/mz_strm_win32.h
@@ -1,5 +1,5 @@
 /* mz_sstrm_win32.h -- Stream for filesystem access for windows
-   Version 2.2.1, October 23rd, 2017
+   Version 2.2.2, October 26th, 2017
    part of the MiniZip project
 
    Copyright (C) 2012-2017 Nathan Moinvaziri
diff --git a/src/mz_strm_zlib.c b/src/mz_strm_zlib.c
index 5abaedb..73aa1dd 100644
--- a/src/mz_strm_zlib.c
+++ b/src/mz_strm_zlib.c
@@ -1,5 +1,5 @@
 /* mz_strm_zlib.c -- Stream for zlib inflate/deflate
-   Version 2.2.1, October 23rd, 2017
+   Version 2.2.2, October 26th, 2017
    part of the MiniZip project
 
    Copyright (C) 2012-2017 Nathan Moinvaziri
diff --git a/src/mz_strm_zlib.h b/src/mz_strm_zlib.h
index cc7ba80..66c5d0f 100644
--- a/src/mz_strm_zlib.h
+++ b/src/mz_strm_zlib.h
@@ -1,5 +1,5 @@
 /* mz_strm_zlib.h -- Stream for zlib inflate/deflate
-   Version 2.2.1, October 23rd, 2017
+   Version 2.2.2, October 26th, 2017
    part of the MiniZip project
 
    Copyright (C) 2012-2017 Nathan Moinvaziri
diff --git a/src/mz_zip.c b/src/mz_zip.c
index 67b6f69..9312021 100755
--- a/src/mz_zip.c
+++ b/src/mz_zip.c
@@ -1,5 +1,5 @@
 /* zip.c -- Zip manipulation
-   Version 2.2.1, October 23rd, 2017
+   Version 2.2.2, October 26th, 2017
    part of the MiniZip project
 
    Copyright (C) 2010-2017 Nathan Moinvaziri
diff --git a/src/mz_zip.h b/src/mz_zip.h
index 35d5806..d44bc91 100644
--- a/src/mz_zip.h
+++ b/src/mz_zip.h
@@ -1,5 +1,5 @@
 /* mz_zip.h -- Zip manipulation
-   Version 2.2.1, October 23rd, 2017
+   Version 2.2.2, October 26th, 2017
    part of the MiniZip project
 
    Copyright (C) 2012-2017 Nathan Moinvaziri