summaryrefslogtreecommitdiffstats
path: root/minzip
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2014-03-17 15:35:52 -0700
committerMark Salyzyn <salyzyn@google.com>2014-03-17 16:05:12 -0700
commit76b245c24c12feec2381c423de2f7ffe4b78d7f0 (patch)
treebf975c860dfe50d1b38682f465a2ac96a5ec8f55 /minzip
parent679baa06b79e0c9100ce05fa0191928fc2a691fb (diff)
downloadbootable_recovery-76b245c24c12feec2381c423de2f7ffe4b78d7f0.zip
bootable_recovery-76b245c24c12feec2381c423de2f7ffe4b78d7f0.tar.gz
bootable_recovery-76b245c24c12feec2381c423de2f7ffe4b78d7f0.tar.bz2
minzip: 64 bit build issue
Regression - verification and extraction on memory, not files Bug: 12188746 Change-Id: Ib6facc4aff6be3a31a7d184ef1c493fdd4012c21
Diffstat (limited to 'minzip')
-rw-r--r--minzip/SysUtil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/minzip/SysUtil.c b/minzip/SysUtil.c
index c046a8c..ac6f5c3 100644
--- a/minzip/SysUtil.c
+++ b/minzip/SysUtil.c
@@ -103,7 +103,7 @@ static int sysMapBlockFile(FILE* mapf, MemMapping* pMap)
}
}
- if (fscanf(mapf, "%d %d\n%d\n", &size, &blksize, &range_count) != 3) {
+ if (fscanf(mapf, "%zu %u\n%u\n", &size, &blksize, &range_count) != 3) {
LOGW("failed to parse block map header\n");
return -1;
}