git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5eccc90
)
allow for the NULL in make_nmb_name()
author
Andrew Tridgell
<tridge@samba.org>
Mon, 20 Aug 2001 18:05:12 +0000
(18:05 +0000)
committer
Andrew Tridgell
<tridge@samba.org>
Mon, 20 Aug 2001 18:05:12 +0000
(18:05 +0000)
(This used to be commit
b6c78d4c6fde2065678dd62bbd9dd4af9c5e805b
)
source3/libsmb/nmblib.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/nmblib.c
b/source3/libsmb/nmblib.c
index 9d7167f30541eaa6ee28823f1e0b7c6c81038c37..6a24cb382c23e54a3d6837b2e8997950c3c79838 100644
(file)
--- 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, 1
5
, STR_TERMINATE|STR_UPPER);
+ push_ascii(n->name, name, 1
6
, STR_TERMINATE|STR_UPPER);
n->name_type = (unsigned int)type & 0xFF;
StrnCpy( n->scope, global_scope, 63 );
strupper( n->scope );