diff options
-rw-r--r-- | source3/libsmb/clireadwrite.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/clireadwrite.c b/source3/libsmb/clireadwrite.c index 35d2afe2e7..c31d417fbd 100644 --- a/source3/libsmb/clireadwrite.c +++ b/source3/libsmb/clireadwrite.c @@ -443,7 +443,7 @@ ssize_t cli_smbwrite(struct cli_state *cli, p = smb_buf(cli->outbuf); *p++ = 1; SSVAL(p, 0, size); p += 2; - memcpy(p, buf, size); p += size; + memcpy(p, buf + total, size); p += size; cli_setup_bcc(cli, p); |