diff options
author | Dan Albert <danalbert@google.com> | 2015-02-26 13:50:01 -0800 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2015-02-26 13:57:03 -0800 |
commit | 190977157bbb7118a9416614d5e9492114bc2fc5 (patch) | |
tree | 2e5ead5596e2c1b79197614e4c6ffa9f51454e94 /minadbd | |
parent | 9255ad4a4f46dc7781b180d0cffce2d616adebcf (diff) | |
download | bootable_recovery-190977157bbb7118a9416614d5e9492114bc2fc5.zip bootable_recovery-190977157bbb7118a9416614d5e9492114bc2fc5.tar.gz bootable_recovery-190977157bbb7118a9416614d5e9492114bc2fc5.tar.bz2 |
This read accidentally got turned in to a write.
Too many mechanical changes in a row...
Bug: 19522788
Change-Id: Ic451792aab2700cdbdbb64529b99ff5f567918ad
Diffstat (limited to 'minadbd')
-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 300e3c7..0d71072 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; } |