summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2019-09-18 14:44:42 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2019-09-18 14:44:42 +0000
commitb0321c1de178ac2dfd05fb6537e0e63f7eecf87e (patch)
tree5c457a5870f4062b382a8b6abffb7095383b3cbb
parent7922a446371add87d4aa53b33f4fb1a633568f64 (diff)
parentfbb9535aaea5ae4011f3c3edf4c00b27452f57ec (diff)
Merge "fastboot: don't use sparse_file_import_auto() in load_buf_fd()"
-rw-r--r--fastboot/fastboot.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fastboot/fastboot.cpp b/fastboot/fastboot.cpp
index 4737ae4d6..a7fc628c4 100644
--- a/fastboot/fastboot.cpp
+++ b/fastboot/fastboot.cpp
@@ -874,7 +874,7 @@ static bool load_buf_fd(int fd, struct fastboot_buffer* buf) {
return false;
}
- if (sparse_file* s = sparse_file_import_auto(fd, false, false)) {
+ if (sparse_file* s = sparse_file_import(fd, false, false)) {
buf->image_size = sparse_file_len(s, false, false);
sparse_file_destroy(s);
} else {