summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2015-10-21 23:57:44 +0200
committerTao Bao <tbao@google.com>2015-10-23 02:04:28 +0200
commit1fdec8685af858c5ff4f45d2e3059186ab5ed2ab (patch)
tree5a680dee2ed5945b9bd35154dfc196b0a830808a
parentMerge "Error correction: Use libfec in blockimg.cpp for recovery" (diff)
downloadandroid_bootable_recovery-1fdec8685af858c5ff4f45d2e3059186ab5ed2ab.tar
android_bootable_recovery-1fdec8685af858c5ff4f45d2e3059186ab5ed2ab.tar.gz
android_bootable_recovery-1fdec8685af858c5ff4f45d2e3059186ab5ed2ab.tar.bz2
android_bootable_recovery-1fdec8685af858c5ff4f45d2e3059186ab5ed2ab.tar.lz
android_bootable_recovery-1fdec8685af858c5ff4f45d2e3059186ab5ed2ab.tar.xz
android_bootable_recovery-1fdec8685af858c5ff4f45d2e3059186ab5ed2ab.tar.zst
android_bootable_recovery-1fdec8685af858c5ff4f45d2e3059186ab5ed2ab.zip
-rw-r--r--updater/blockimg.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/updater/blockimg.cpp b/updater/blockimg.cpp
index 4a813b1d8..dd6cf0d96 100644
--- a/updater/blockimg.cpp
+++ b/updater/blockimg.cpp
@@ -1374,7 +1374,7 @@ static Value* PerformBlockImageUpdate(const char* name, State* state, int /* arg
std::vector<std::string> lines = android::base::Split(transfer_list, "\n");
// First line in transfer list is the version number
- if (!android::base::ParseInt(lines[0].c_str(), &params.version, 1, 3)) {
+ if (!android::base::ParseInt(lines[0].c_str(), &params.version, 1, 4)) {
fprintf(stderr, "unexpected transfer list version [%s]\n", lines[0].c_str());
return StringValue(strdup(""));
}