summaryrefslogtreecommitdiffstats
path: root/libc/tools
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2013-03-14 17:10:24 -0700
committerElliott Hughes <enh@google.com>2013-03-14 17:10:24 -0700
commitaf7f2f2fcf9887668918bdc5f0670bdd4aae8009 (patch)
treec36aa91c8993bc251222c2fe183785e83b6718fb /libc/tools
parentf861bc5cc3e17322e49f89deea61f278aaefbe76 (diff)
downloadbionic-af7f2f2fcf9887668918bdc5f0670bdd4aae8009.zip
bionic-af7f2f2fcf9887668918bdc5f0670bdd4aae8009.tar.gz
bionic-af7f2f2fcf9887668918bdc5f0670bdd4aae8009.tar.bz2
Fix a bug in ZoneCompactor that meant the zonetab offset was wrong.
Bug: 8391426 Change-Id: Ia4a8889b5a613aa96bb3fb5d89a921c913ff7626
Diffstat (limited to 'libc/tools')
-rw-r--r--libc/tools/zoneinfo/ZoneCompactor.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/tools/zoneinfo/ZoneCompactor.java b/libc/tools/zoneinfo/ZoneCompactor.java
index 8a1a628..f47afd1 100644
--- a/libc/tools/zoneinfo/ZoneCompactor.java
+++ b/libc/tools/zoneinfo/ZoneCompactor.java
@@ -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);