summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-05-28 00:41:08 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:51:50 -0500
commit0823cb35175929b0c1dd00369037441293b89ec9 (patch)
treee4c6e3c3c971faad3b353e501dfbc2662843afa0
parent16452d54f77b17409f3cb40a286ef84e8e6d79a2 (diff)
downloadsamba-0823cb35175929b0c1dd00369037441293b89ec9.tar.gz
samba-0823cb35175929b0c1dd00369037441293b89ec9.tar.bz2
samba-0823cb35175929b0c1dd00369037441293b89ec9.zip
r931: Ensure we push 16 bytes (including null termination)
not 15. (This used to be commit 1d3fd1a58e0a8b08fe028ceee03618180c7d4b97)
-rw-r--r--source3/smbd/lanman.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/lanman.c b/source3/smbd/lanman.c
index c4df84e76c..dd9708356e 100644
--- a/source3/smbd/lanman.c
+++ b/source3/smbd/lanman.c
@@ -1121,11 +1121,11 @@ static int fill_srv_info(struct srv_info_struct *service,
switch (uLevel)
{
case 0:
- push_ascii(p,service->name, 15, STR_TERMINATE);
+ push_ascii(p,service->name, MAX_NETBIOSNAME_LEN, STR_TERMINATE);
break;
case 1:
- push_ascii(p,service->name,15, STR_TERMINATE);
+ push_ascii(p,service->name,MAX_NETBIOSNAME_LEN, STR_TERMINATE);
SIVAL(p,18,service->type);
SIVAL(p,22,PTR_DIFF(p2,baseaddr));
len += CopyAndAdvance(&p2,service->comment,&l2);