From 0823cb35175929b0c1dd00369037441293b89ec9 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 28 May 2004 00:41:08 +0000 Subject: r931: Ensure we push 16 bytes (including null termination) not 15. (This used to be commit 1d3fd1a58e0a8b08fe028ceee03618180c7d4b97) --- source3/smbd/lanman.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/smbd') 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); -- cgit