提交 f412fc9f 编写于 作者: P Peter Krempa

storage: gluster: Fix header reader function

Advance the right pointer to actually append to the buffer. We were
lucky that all reads were completed in one try.
上级 88f3f7c3
......@@ -173,7 +173,7 @@ virStorageBackendGlusterReadHeader(glfs_fd_t *fd,
}
if (r == 0)
return nread;
buf += r;
s += r;
maxlen -= r;
nread += r;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册