Fix the character set handling properly in nmbd. Also fix bug where
[nivanova/samba-autobuild/.git] / source3 / libsmb / nmblib.c
index 23eac9ad7cc3c273fe3d071ada04d7129577c889..ff38245435dcbb09753488d6a97a7cd3a46c179b 100644 (file)
@@ -825,8 +825,7 @@ void make_nmb_name( struct nmb_name *n, const char *name, int type)
        memset( (char *)n, '\0', sizeof(struct nmb_name) );
        push_ascii(n->name, name, sizeof(n->name), STR_TERMINATE|STR_UPPER);
        n->name_type = (unsigned int)type & 0xFF;
-       StrnCpy( n->scope, global_scope(), 63 );
-       strupper_m( n->scope );
+       push_ascii(n->scope,  global_scope(), 64, STR_TERMINATE);
 }
 
 /*******************************************************************