fixed a pstrcpy() that is not on a pstring
authorAndrew Tridgell <tridge@samba.org>
Fri, 6 Jun 2003 05:31:30 +0000 (05:31 +0000)
committerAndrew Tridgell <tridge@samba.org>
Fri, 6 Jun 2003 05:31:30 +0000 (05:31 +0000)
(This used to be commit f644b3d6d238e3c44d0358b44296a9360d16bb41)

source3/libsmb/nmblib.c

index 30ce5b6b10c5aad29bec29a7acb40508d9c4bd8e..b96111240f1e5795f4cb96767a125f4b8c14ae1d 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,'.'))) {