diff -r 4a25113cb2a4 -r a3542e78ecd8 src/lib/cache.c --- a/src/lib/cache.c Sun Jan 24 23:17:10 2010 +0200 +++ b/src/lib/cache.c Sun Jan 24 23:20:39 2010 +0200 @@ -377,7 +377,7 @@ // skip background-colored regions to keep the cache file sparse // ...in blocks of PT_CACHE_BLOCK_SIZE bytes - for (size_t col_base = 0; col_base < cache->header->width; ){ + for (size_t col_base = 0; col_base < cache->header->width; col_base += PT_CACHE_BLOCK_SIZE) { // size of this block in bytes size_t block_size = min(PT_CACHE_BLOCK_SIZE * cache->header->col_bytes, cache->header->row_bytes - col_base);