From df0cbd1b12b80310e62b64f799860f8f02ead4cf Mon Sep 17 00:00:00 2001 From: Steve Slaven Date: Tue, 28 Jul 2009 10:07:06 -0700 Subject: Fix not incrementing blocks while filling 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 -- cgit v0.10.2