summaryrefslogtreecommitdiff
path: root/source3/nmbd
diff options
context:
space:
mode:
authorJim McDonough <jmcd@samba.org>2003-03-20 14:49:47 +0000
committerJim McDonough <jmcd@samba.org>2003-03-20 14:49:47 +0000
commitefadbacb9abde371dfb3f19c9f9f69539ec1dc34 (patch)
tree7285f3d21be267cdd57de2dfd2f1a355edef02df /source3/nmbd
parentd02f57f14453a64419739293cbafc3d1f0c29213 (diff)
downloadsamba-efadbacb9abde371dfb3f19c9f9f69539ec1dc34.tar.gz
samba-efadbacb9abde371dfb3f19c9f9f69539ec1dc34.tar.bz2
samba-efadbacb9abde371dfb3f19c9f9f69539ec1dc34.zip
use pstrcpy_base()
(This used to be commit 2e3710f67293b01084026549246d494103b2d536)
Diffstat (limited to 'source3/nmbd')
-rw-r--r--source3/nmbd/nmbd_elections.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/nmbd/nmbd_elections.c b/source3/nmbd/nmbd_elections.c
index f09c37eedc..339a27d207 100644
--- a/source3/nmbd/nmbd_elections.c
+++ b/source3/nmbd/nmbd_elections.c
@@ -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);