summaryrefslogtreecommitdiffstats
path: root/minadbd/fuse_adb_provider.c
diff options
context:
space:
mode:
Diffstat (limited to 'minadbd/fuse_adb_provider.c')
-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;
}