From efadbacb9abde371dfb3f19c9f9f69539ec1dc34 Mon Sep 17 00:00:00 2001 From: Jim McDonough Date: Thu, 20 Mar 2003 14:49:47 +0000 Subject: [PATCH] use pstrcpy_base() (This used to be commit 2e3710f67293b01084026549246d494103b2d536) --- source3/nmbd/nmbd_elections.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/nmbd/nmbd_elections.c b/source3/nmbd/nmbd_elections.c index f09c37eedcb..339a27d2078 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); -- 2.34.1