use pstrcpy_base()
authorJim McDonough <jmcd@samba.org>
Thu, 20 Mar 2003 14:39:46 +0000 (14:39 +0000)
committerJim McDonough <jmcd@samba.org>
Thu, 20 Mar 2003 14:39:46 +0000 (14:39 +0000)
(This used to be commit 9387caf3cebecd50de2b295560355b779135d8c3)

source3/nmbd/nmbd_elections.c

index f09c37eedcb592240a7bc5c0ef40a4f2e35d9385..339a27d2078c4ba626844479ad11e397f01809d6 100644 (file)
@@ -47,7 +47,7 @@ static void send_election_dgram(struct subnet_record *subrec, const char *workgr
   SIVAL(p,1,criterion);
   SIVAL(p,5,timeup*1000); /* ms - Despite what the spec says. */
   p += 13;
-  safe_strcpy(p, server_name, sizeof(outbuf) - 1 - (p-outbuf));
+  pstrcpy_base(p, server_name, outbuf);
   strupper(p);
   p = skip_string(p,1);