summaryrefslogtreecommitdiff
path: root/source3/libsmb/nmblib.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-06-06 05:31:30 +0000
committerAndrew Tridgell <tridge@samba.org>2003-06-06 05:31:30 +0000
commit49d71c7e7b69662083d889966ca4600b5000f521 (patch)
tree84c88805aaea3de0c546cf0283bb28233410f71b /source3/libsmb/nmblib.c
parent6b943b5b2188314739f4f36541f1ef469ba9a3b3 (diff)
downloadsamba-49d71c7e7b69662083d889966ca4600b5000f521.tar.gz
samba-49d71c7e7b69662083d889966ca4600b5000f521.tar.bz2
samba-49d71c7e7b69662083d889966ca4600b5000f521.zip
fixed a pstrcpy() that is not on a pstring
(This used to be commit f644b3d6d238e3c44d0358b44296a9360d16bb41)
Diffstat (limited to 'source3/libsmb/nmblib.c')
-rw-r--r--source3/libsmb/nmblib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/nmblib.c b/source3/libsmb/nmblib.c
index 30ce5b6b10..b96111240f 100644
--- a/source3/libsmb/nmblib.c
+++ b/source3/libsmb/nmblib.c
@@ -295,7 +295,7 @@ static int put_nmb_name(char *buf,int offset,struct nmb_name *name)
if (name->scope[0]) {
/* XXXX this scope handling needs testing */
ret += strlen(name->scope) + 1;
- pstrcpy(&buf[offset+1],name->scope);
+ safe_strcpy(&buf[offset+1],name->scope,sizeof(name->scope));
p = &buf[offset+1];
while ((p = strchr_m(p,'.'))) {