trying to get HEAD building again. If you want the code
[samba.git] / source3 / libsmb / nmblib.c
index 30ce5b6b10c5aad29bec29a7acb40508d9c4bd8e..157a2bb43cba43e1ea0fc8528d3b009858d004ed 100644 (file)
@@ -295,7 +295,7 @@ static int put_nmb_name(char *buf,int offset,struct nmb_name *name)
   if (name->scope[0]) {
     /* XXXX this scope handling needs testing */
     ret += strlen(name->scope) + 1;
-    pstrcpy(&buf[offset+1],name->scope);  
+    safe_strcpy(&buf[offset+1],name->scope,sizeof(name->scope));  
   
     p = &buf[offset+1];
     while ((p = strchr_m(p,'.'))) {
@@ -823,7 +823,7 @@ void make_nmb_name( struct nmb_name *n, const char *name, int type)
        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 );
+       strupper_m( n->scope );
 }
 
 /*******************************************************************