summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-08-20 18:05:12 +0000
committerAndrew Tridgell <tridge@samba.org>2001-08-20 18:05:12 +0000
commitb6c78d4c6fde2065678dd62bbd9dd4af9c5e805b (patch)
tree356b04a63cca5e931ce23f418124658a0f06a8db
parent1c2618df450ddde7e52ab8784fcdd2b64a85771e (diff)
downloadsamba-b6c78d4c6fde2065678dd62bbd9dd4af9c5e805b.tar.gz
samba-b6c78d4c6fde2065678dd62bbd9dd4af9c5e805b.tar.xz
samba-b6c78d4c6fde2065678dd62bbd9dd4af9c5e805b.zip
allow for the NULL in make_nmb_name()
-rw-r--r--source/libsmb/nmblib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/libsmb/nmblib.c b/source/libsmb/nmblib.c
index 9d7167f3054..6a24cb382c2 100644
--- a/source/libsmb/nmblib.c
+++ b/source/libsmb/nmblib.c
@@ -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 );