am 9ede4549: am f8d689bc: am 4d696eb4: Merge "Fix a bug in ZoneCompactor that meant the zonetab offset was wrong."
* commit '9ede4549fe083e54cdf2f34b177fc32777f61fac': Fix a bug in ZoneCompactor that meant the zonetab offset was wrong.
This commit is contained in:
commit
c204b501f4
@ -198,6 +198,8 @@ public class ZoneCompactor {
|
||||
// Write the data.
|
||||
f.write(allData.toByteArray());
|
||||
|
||||
int zonetab_offset = (int) f.getFilePointer();
|
||||
|
||||
// Copy the zone.tab.
|
||||
reader = new BufferedReader(new FileReader(zoneTabFile));
|
||||
while ((s = reader.readLine()) != null) {
|
||||
@ -208,8 +210,6 @@ public class ZoneCompactor {
|
||||
}
|
||||
reader.close();
|
||||
|
||||
int zonetab_offset = (int) f.getFilePointer();
|
||||
|
||||
// Go back and fix up the offsets in the header.
|
||||
f.seek(index_offset_offset);
|
||||
f.writeInt(index_offset);
|
||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user