From 29d734a93cf3baa902502852bd246b387d6e8f93 Mon Sep 17 00:00:00 2001 From: Jim McDonough Date: Thu, 20 Mar 2003 14:39:46 +0000 Subject: use pstrcpy_base() (This used to be commit 9387caf3cebecd50de2b295560355b779135d8c3) --- source3/nmbd/nmbd_elections.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/nmbd') 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); -- cgit