Index: nmbd/nmbd_packets.c =================================================================== RCS file: /data/cvs/samba/source/nmbd/nmbd_packets.c,v retrieving revision 1.52.2.6 diff -u -r1.52.2.6 nmbd_packets.c --- nmbd/nmbd_packets.c 27 Aug 2003 01:25:01 -0000 1.52.2.6 +++ nmbd/nmbd_packets.c 5 Nov 2003 00:07:50 -0000 @@ -1835,7 +1835,7 @@ /* Setup the smb part. */ ptr -= 4; /* XXX Ugliness because of handling of tcp SMB length. */ memcpy(tmp,ptr,4); - set_message(ptr,17,23 + len,True); + set_message(ptr,17,strlen(mailslot) + 1 + len,True); memcpy(ptr,tmp,4); SCVAL(ptr,smb_com,SMBtrans);