diff options
author | Jeremy Allison <jra@samba.org> | 2011-05-03 13:14:46 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2011-05-04 12:12:14 -0700 |
commit | 0c464df22b4d1a488ebe6ae889305a76d517f3d8 (patch) | |
tree | 78d932cf007185e02918ef451e993359f78a9e50 /source3/nmbd | |
parent | 017e0c8d95fe8212b006e1c14aef8d96fed30674 (diff) | |
download | samba-0c464df22b4d1a488ebe6ae889305a76d517f3d8.tar.gz samba-0c464df22b4d1a488ebe6ae889305a76d517f3d8.tar.bz2 samba-0c464df22b4d1a488ebe6ae889305a76d517f3d8.zip |
Change safe_strcpy_base to strlcpy_base. Note the size doesn't change here as the original macro auto-added the -1.
Diffstat (limited to 'source3/nmbd')
-rw-r--r-- | source3/nmbd/nmbd_packets.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/nmbd/nmbd_packets.c b/source3/nmbd/nmbd_packets.c index 36dacfb6f3..2817ea80be 100644 --- a/source3/nmbd/nmbd_packets.c +++ b/source3/nmbd/nmbd_packets.c @@ -2087,7 +2087,7 @@ bool send_mailslot(bool unique, const char *mailslot,char *buf, size_t len, SSVAL(ptr,smb_vwv15,1); SSVAL(ptr,smb_vwv16,2); p2 = smb_buf(ptr); - safe_strcpy_base(p2, mailslot, dgram->data, sizeof(dgram->data)); + strlcpy_base(p2, mailslot, dgram->data, sizeof(dgram->data)); p2 = skip_string(ptr,MAX_DGRAM_SIZE,p2); if (((p2+len) > dgram->data+sizeof(dgram->data)) || ((p2+len) < p2)) { |