]> git.ipfire.org Git - thirdparty/wireguard-apple.git/commitdiff
Zip: Increase size of buffer used to read data from the archive
authorRoopesh Chander <roop@roopc.net>
Fri, 7 Dec 2018 19:58:57 +0000 (01:28 +0530)
committerRoopesh Chander <roop@roopc.net>
Fri, 7 Dec 2018 20:47:55 +0000 (02:17 +0530)
Signed-off-by: Roopesh Chander <roop@roopc.net>
WireGuard/WireGuard/ZipArchive/ZipArchive.swift

index 2faa5164011f679100275355a7a21d6d98b7d81e..7cf702c07cad4058a8cc8cfdd753627dfa1a92d2 100644 (file)
@@ -59,7 +59,7 @@ class ZipArchive {
                 throw ZipArchiveError.badArchive
             }
 
-            let bufferSize = 1024
+            let bufferSize = 16384 // 16 kb
             var fileNameBuffer = UnsafeMutablePointer<Int8>.allocate(capacity: bufferSize)
             var dataBuffer = UnsafeMutablePointer<Int8>.allocate(capacity: bufferSize)