summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim McDonough <jmcd@samba.org>2003-03-20 14:39:46 +0000
committerJim McDonough <jmcd@samba.org>2003-03-20 14:39:46 +0000
commit29d734a93cf3baa902502852bd246b387d6e8f93 (patch)
tree8a47c68e94f7b26f0ccf10dafb1b662b284afb15
parent6798444ba5de8424578823aaf85b3fd9c65cc4f6 (diff)
downloadsamba-29d734a93cf3baa902502852bd246b387d6e8f93.tar.gz
samba-29d734a93cf3baa902502852bd246b387d6e8f93.tar.bz2
samba-29d734a93cf3baa902502852bd246b387d6e8f93.zip
use pstrcpy_base()
(This used to be commit 9387caf3cebecd50de2b295560355b779135d8c3)
-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);