Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion buse.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ static int serve_nbd(int sk, const struct buse_operations * aop, void * userdata
case NBD_CMD_WRITE:
if (BUSE_DEBUG) fprintf(stderr, "Request for write of size %d\n", len);
chunk = malloc(len);
read_all(sk, chunk, len);
read_all(sk, (char*)chunk, len);
if (aop->write) {
reply.error = aop->write(chunk, len, from, userdata);
} else {
Expand Down