]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/rgw/rgw_civetweb.cc
update sources to 12.2.7
[ceph.git] / ceph / src / rgw / rgw_civetweb.cc
index fd99584aafc7cbb4faad4edcfdaac262b966b39b..c3f585cfc21863624d3212eace00d358980578aa 100644 (file)
@@ -56,7 +56,7 @@ size_t RGWCivetWeb::read_data(char *buf, size_t len)
     return 0;
   }
   for (c = 0; c < len; c += ret) {
-    ret = mg_read(conn, buf, len);
+    ret = mg_read(conn, buf+c, len-c);
     if (ret < 0) {
       throw rgw::io::Exception(EIO, std::system_category());
     }