aboutsummaryrefslogtreecommitdiffstats
path: root/fusearchive.py
diff options
context:
space:
mode:
authorSteve Slaven <bpk@hoopajoo.net>2009-07-28 17:07:06 (GMT)
committerSteve Slaven <bpk@hoopajoo.net>2009-07-28 17:07:06 (GMT)
commitdf0cbd1b12b80310e62b64f799860f8f02ead4cf (patch)
tree1716d18672d57e090db67c83cc512fd29c0b929f /fusearchive.py
parent1d90b688c485fa1421db7103926af73cc2b6b6b1 (diff)
downloadfusearchive-df0cbd1b12b80310e62b64f799860f8f02ead4cf.zip
fusearchive-df0cbd1b12b80310e62b64f799860f8f02ead4cf.tar.gz
fusearchive-df0cbd1b12b80310e62b64f799860f8f02ead4cf.tar.bz2
Fix not incrementing blocks while filling
Diffstat (limited to 'fusearchive.py')
-rwxr-xr-xfusearchive.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/fusearchive.py b/fusearchive.py
index 8573176..8998601 100755
--- a/fusearchive.py
+++ b/fusearchive.py
@@ -656,7 +656,8 @@ class FuseArchive(Fuse):
str( index ) + ", extending" )
this_index = -1
while this_index < index:
- self._load_chunk( this_index + 1 )
+ this_index += 1
+ self._load_chunk( this_index )
fill_null = self.chunk_size - len(self.chunk)
logging.debug( "Filling this chunk with null, bytes: " + str( fill_null ) )
self.chunk += "\0" * fill_null