diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPFileHandle.m | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/SPFileHandle.m b/Source/SPFileHandle.m index ac812ac7..b71873ed 100644 --- a/Source/SPFileHandle.m +++ b/Source/SPFileHandle.m @@ -97,6 +97,7 @@ // Get the first 3 bytes from the file for (i = 0; (c = getc(wrappedFile)) != EOF && i < 4; bzbuf[i++] = c); + rewind(wrappedFile); // Test to see if the file is gzip compressed BOOL isGzip = (!gzdirect(gzfile)); |