summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim McDonough <jmcd@samba.org>2003-03-19 19:32:51 +0000
committerJim McDonough <jmcd@samba.org>2003-03-19 19:32:51 +0000
commit84627f7995af6260e56f734a6d39ea1a85274c34 (patch)
tree392ea057c51b552f01f77da2bbe7d554d06c0aa0
parenta4c72cfa9bbd5194fe8ea79cf0d996ec665c7ddb (diff)
downloadsamba-84627f7995af6260e56f734a6d39ea1a85274c34.tar.gz
samba-84627f7995af6260e56f734a6d39ea1a85274c34.tar.bz2
samba-84627f7995af6260e56f734a6d39ea1a85274c34.zip
replace pstrcpy
(This used to be commit c6eb950b6879d7566ded33dd6a3853cf2d5310db)
-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);