diff options
author | rowanbeentje <rowan@beent.je> | 2010-07-24 23:50:07 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2010-07-24 23:50:07 +0000 |
commit | 477d0be75f3433a457f22a89b266235dae0aa164 (patch) | |
tree | e5eb8eabd0505244b512e74ac3b668fe3b2251dc /Source/SPFileHandle.m | |
parent | bf1294bd1016672aa3062bb80b546bf2f8037fb3 (diff) | |
download | sequelpro-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.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)); |