summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2015-02-27 00:32:45 +0100
committerAndroid Git Automerger <android-git-automerger@android.com>2015-02-27 00:32:45 +0100
commitcd70624436a336085565c5a6165719fc6b921049 (patch)
tree8d8cd883028054f1a61a858c1a21d851725ff69d
parentam d9bbeaec: am 83e5d1dc: am c9bc3cc9: Merge "Drop hardcoded LOCAL_C_INCLUDES from minui/Android.mk" (diff)
parentam 735a0f0f: am cab0beb9: Merge "This read accidentally got turned in to a write." (diff)
downloadandroid_bootable_recovery-cd70624436a336085565c5a6165719fc6b921049.tar
android_bootable_recovery-cd70624436a336085565c5a6165719fc6b921049.tar.gz
android_bootable_recovery-cd70624436a336085565c5a6165719fc6b921049.tar.bz2
android_bootable_recovery-cd70624436a336085565c5a6165719fc6b921049.tar.lz
android_bootable_recovery-cd70624436a336085565c5a6165719fc6b921049.tar.xz
android_bootable_recovery-cd70624436a336085565c5a6165719fc6b921049.tar.zst
android_bootable_recovery-cd70624436a336085565c5a6165719fc6b921049.zip
-rw-r--r--minadbd/fuse_adb_provider.c2
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;
}