Commit 0823cb35 authored by Jeremy Allison's avatar Jeremy Allison Committed by Gerald (Jerry) Carter
Browse files

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

not 15.
(This used to be commit 1d3fd1a58e0a8b08fe028ceee03618180c7d4b97)
parent 16452d54
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);