diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/clidgram.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/clidgram.c b/source3/libsmb/clidgram.c index abade68b01..8f4bdf7be6 100644 --- a/source3/libsmb/clidgram.c +++ b/source3/libsmb/clidgram.c @@ -117,7 +117,7 @@ int cli_get_response(int dgram_sock, BOOL unique, char *mailslot, char *buf, int /* Copy the data to buffer, respecting sizes ... */ - memset(buf, &dgram->data[92], MIN(bufsiz, (dgram->datasize - 92))); + memcpy(buf, &dgram->data[92], MIN(bufsiz, (dgram->datasize - 92))); } else |