diff options
author | Dan Albert <danalbert@google.com> | 2015-02-26 22:59:31 +0100 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-02-26 22:59:32 +0100 |
commit | cab0beb95adce79b0c33488b5a503cac7dca6e77 (patch) | |
tree | e4edc38a4f6c6aebe04559423d3c2e8136dec8cf | |
parent | Merge "Drop hardcoded LOCAL_C_INCLUDES from minui/Android.mk" (diff) | |
parent | This read accidentally got turned in to a write. (diff) | |
download | android_bootable_recovery-cab0beb95adce79b0c33488b5a503cac7dca6e77.tar android_bootable_recovery-cab0beb95adce79b0c33488b5a503cac7dca6e77.tar.gz android_bootable_recovery-cab0beb95adce79b0c33488b5a503cac7dca6e77.tar.bz2 android_bootable_recovery-cab0beb95adce79b0c33488b5a503cac7dca6e77.tar.lz android_bootable_recovery-cab0beb95adce79b0c33488b5a503cac7dca6e77.tar.xz android_bootable_recovery-cab0beb95adce79b0c33488b5a503cac7dca6e77.tar.zst android_bootable_recovery-cab0beb95adce79b0c33488b5a503cac7dca6e77.zip |
-rw-r--r-- | minadbd/fuse_adb_provider.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/minadbd/fuse_adb_provider.c b/minadbd/fuse_adb_provider.c index 300e3c748..0d710727d 100644 --- a/minadbd/fuse_adb_provider.c +++ b/minadbd/fuse_adb_provider.c @@ -42,7 +42,7 @@ static int read_block_adb(void* cookie, uint32_t block, uint8_t* buffer, uint32_ return -EIO; } - if (!WriteFdExactly(ad->sfd, buffer, fetch_size)) { + if (!ReadFdExactly(ad->sfd, buffer, fetch_size)) { fprintf(stderr, "failed to read from adb host: %s\n", strerror(errno)); return -EIO; } |