1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-03 12:58:35 +03:00

allow for the NULL in make_nmb_name()

(This used to be commit b6c78d4c6fde2065678dd62bbd9dd4af9c5e805b)
This commit is contained in:
Andrew Tridgell 2001-08-20 18:05:12 +00:00
parent 5eccc9061b
commit 4294f6f2c8

View File

@ -831,7 +831,7 @@ void make_nmb_name( struct nmb_name *n, const char *name, int type)
{
extern pstring global_scope;
memset( (char *)n, '\0', sizeof(struct nmb_name) );
push_ascii(n->name, name, 15, STR_TERMINATE|STR_UPPER);
push_ascii(n->name, name, 16, STR_TERMINATE|STR_UPPER);
n->name_type = (unsigned int)type & 0xFF;
StrnCpy( n->scope, global_scope, 63 );
strupper( n->scope );