From 4ed5414dd0fb95f8bda5e60861da15ec3bd3e975 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 30 Jun 2011 21:26:15 +0000 Subject: =?UTF-8?q?Hopefully=20fix=20off-by-4=20read=20of=20old-style=20Ba?= =?UTF-8?q?ckupStoreInfo=20header,=20thanks=20to=20Sune=20M=C3=B8lgaard=20?= =?UTF-8?q?for=20reporting.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/backupstore/BackupStoreInfo.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/backupstore/BackupStoreInfo.cpp b/lib/backupstore/BackupStoreInfo.cpp index 6c7a3758..0536634b 100644 --- a/lib/backupstore/BackupStoreInfo.cpp +++ b/lib/backupstore/BackupStoreInfo.cpp @@ -192,6 +192,7 @@ std::auto_ptr BackupStoreInfo::Load(int32_t AccountID, { // Read in a header info_StreamFormat_1 hdr; + rf->Seek(0, IOStream::SeekType_Absolute); if(!rf->ReadFullBuffer(&hdr, sizeof(hdr), 0 /* not interested in bytes read if this fails */)) -- cgit v1.2.3