4 Commits
v1.6 ... v1.6.1

Author SHA1 Message Date
Joshua Hudson
39b3500120 Bump Podspec 2016-09-14 12:11:37 -07:00
Joshua Hudson
f4c0147086 Merge pull request #285 from priya87/master
Bug fix: feof() creates infinite loop.
2016-09-14 10:34:28 -07:00
Joshua Hudson
9dae2eca4a Update README.md 2016-09-14 10:33:38 -07:00
priya TIROUNARAYANANE
650c6fb0ab Bug fix: feof() creates infinite loop. 2016-09-14 10:05:00 +02:00
5 changed files with 7 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
PODS:
- SSZipArchive (1.6)
- SSZipArchive (1.6.1)
DEPENDENCIES:
- SSZipArchive (from `..`)
@@ -9,7 +9,7 @@ EXTERNAL SOURCES:
:path: ".."
SPEC CHECKSUMS:
SSZipArchive: e3560652173f5fe708a835632e63e38b9000bdb7
SSZipArchive: 0847403f612553a361f9b44f1c7e135cefbc668d
PODFILE CHECKSUM: ae5fb993e5dc339b15e10067d1e60549fa585f32

View File

@@ -40,9 +40,7 @@ SSZipArchive requires ARC.
[SSZipArchive unzipFileAtPath:zipPath toDestination: unzipPath];
```
### Swift (Swift 3 Only)
(For Swift 2.3 and below support please use continue to use version 1.4 or 1.5)
### Swift
```swift
// Create

View File

@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'SSZipArchive'
s.version = '1.6'
s.version = '1.6.1'
s.summary = 'Utility class for zipping and unzipping files on iOS, tvOS, watchOS, and Mac.'
s.description = 'SSZipArchive is a simple utility class for zipping and unzipping files on iOS, tvOS, watchOS, and Mac.'
s.homepage = 'https://github.com/ZipArchive/ZipArchive'

View File

@@ -720,7 +720,7 @@
zipOpenNewFileInZip3(_zip, afileName, &zipInfo, NULL, 0, NULL, 0, NULL, Z_DEFLATED, Z_DEFAULT_COMPRESSION, 0, -MAX_WBITS, DEF_MEM_LEVEL, Z_DEFAULT_STRATEGY, [password UTF8String], 0);
unsigned int len = 0;
while (!feof(input))
while(!feof(input) && !ferror(input))
{
len = (unsigned int) fread(buffer, 1, CHUNK, input);
zipWriteInFileInZip(_zip, buffer, len);

View File

@@ -1,5 +1,5 @@
PODS:
- SSZipArchive (1.6)
- SSZipArchive (1.6.1)
DEPENDENCIES:
- SSZipArchive (from `..`)
@@ -9,7 +9,7 @@ EXTERNAL SOURCES:
:path: ".."
SPEC CHECKSUMS:
SSZipArchive: e3560652173f5fe708a835632e63e38b9000bdb7
SSZipArchive: 0847403f612553a361f9b44f1c7e135cefbc668d
PODFILE CHECKSUM: 8d38f966bef0580b1feb382672c12ef6a674ea58