Skip the Metacube header when adding data.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 6 Apr 2013 15:48:24 +0000 (17:48 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 6 Apr 2013 15:48:24 +0000 (17:48 +0200)
input.cpp

index 29e4ed3..d369194 100644 (file)
--- a/input.cpp
+++ b/input.cpp
@@ -91,7 +91,7 @@ void Input::curl_callback(char *ptr, size_t bytes)
                        return;
                }
 
-               process_block(pending_data.data(), size, flags);
+               process_block(pending_data.data() + sizeof(metacube_block_header), size, flags);
 
                // Consume this block. This isn't the most efficient way of dealing with things
                // should we have many blocks, but these routines don't need to be too efficient