summaryrefslogtreecommitdiff
path: root/netfs/fuseFiles.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'netfs/fuseFiles.cpp')
-rw-r--r--netfs/fuseFiles.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/netfs/fuseFiles.cpp b/netfs/fuseFiles.cpp
index 42b3012..9343bcf 100644
--- a/netfs/fuseFiles.cpp
+++ b/netfs/fuseFiles.cpp
@@ -39,7 +39,7 @@ NetFS::read(const char *, char * buf, size_t s, off_t o, struct fuse_file_info *
TypedPayload<ReadReply>::Ptr rep = msg->exchange(this);
if (rep->data.size) {
memcpy(buf, rep->data.data, std::min(s, rep->data.size));
- return rep->data.size;
+ return s;
}
else {
return -rep->data.error;