summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJim McDonough <jmcd@samba.org>2003-03-19 19:33:08 +0000
committerJim McDonough <jmcd@samba.org>2003-03-19 19:33:08 +0000
commitcbded5d6f889542f803932b280e0de826238fce7 (patch)
tree3f9da31c359c117b27a39ba2dfe3ab30ececfeab /source3
parent1719a676f3dc118c2de320781a916c33b56d7640 (diff)
downloadsamba-cbded5d6f889542f803932b280e0de826238fce7.tar.gz
samba-cbded5d6f889542f803932b280e0de826238fce7.tar.bz2
samba-cbded5d6f889542f803932b280e0de826238fce7.zip
replace pstrcpy
(This used to be commit c5876f9f07bfff4e03f3a70136515c9daab20afd)
Diffstat (limited to 'source3')
-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 976abbed25..f09c37eedc 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;
- pstrcpy(p,server_name);
+ safe_strcpy(p, server_name, sizeof(outbuf) - 1 - (p-outbuf));
strupper(p);
p = skip_string(p,1);