aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPFileHandle.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-07-24 23:50:07 +0000
committerrowanbeentje <rowan@beent.je>2010-07-24 23:50:07 +0000
commit477d0be75f3433a457f22a89b266235dae0aa164 (patch)
treee5eb8eabd0505244b512e74ac3b668fe3b2251dc /Source/SPFileHandle.m
parentbf1294bd1016672aa3062bb80b546bf2f8037fb3 (diff)
downloadsequelpro-477d0be75f3433a457f22a89b266235dae0aa164.tar.gz
sequelpro-477d0be75f3433a457f22a89b266235dae0aa164.tar.bz2
sequelpro-477d0be75f3433a457f22a89b266235dae0aa164.zip
- Fix a bug in the bz2 changes causing the first three bytes to be skipped when reading uncompressed files
Diffstat (limited to 'Source/SPFileHandle.m')
-rw-r--r--Source/SPFileHandle.m1
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));