1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

r931: Ensure we push 16 bytes (including null termination)

not 15.
This commit is contained in:
Jeremy Allison 2004-05-28 00:41:08 +00:00 committed by Gerald (Jerry) Carter
parent 409eef2be7
commit 1d3fd1a58e

View File

@ -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);