diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-08-20 18:05:12 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-08-20 18:05:12 +0000 |
commit | 4294f6f2c80cb81fdf872bee87e171640e3601fe (patch) | |
tree | d2726344bc0e93629f5fffdd8eaea2eec42a695a /source3 | |
parent | 5eccc9061bcaa1e225dea189ec99e9f53df66bca (diff) | |
download | samba-4294f6f2c80cb81fdf872bee87e171640e3601fe.tar.gz samba-4294f6f2c80cb81fdf872bee87e171640e3601fe.tar.bz2 samba-4294f6f2c80cb81fdf872bee87e171640e3601fe.zip |
allow for the NULL in make_nmb_name()
(This used to be commit b6c78d4c6fde2065678dd62bbd9dd4af9c5e805b)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/nmblib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/nmblib.c b/source3/libsmb/nmblib.c index 9d7167f305..6a24cb382c 100644 --- a/source3/libsmb/nmblib.c +++ b/source3/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 ); |