diff options
author | Jim McDonough <jmcd@samba.org> | 2003-03-20 14:49:47 +0000 |
---|---|---|
committer | Jim McDonough <jmcd@samba.org> | 2003-03-20 14:49:47 +0000 |
commit | efadbacb9abde371dfb3f19c9f9f69539ec1dc34 (patch) | |
tree | 7285f3d21be267cdd57de2dfd2f1a355edef02df /source3/nmbd | |
parent | d02f57f14453a64419739293cbafc3d1f0c29213 (diff) | |
download | samba-efadbacb9abde371dfb3f19c9f9f69539ec1dc34.tar.gz samba-efadbacb9abde371dfb3f19c9f9f69539ec1dc34.tar.bz2 samba-efadbacb9abde371dfb3f19c9f9f69539ec1dc34.zip |
use pstrcpy_base()
(This used to be commit 2e3710f67293b01084026549246d494103b2d536)
Diffstat (limited to 'source3/nmbd')
-rw-r--r-- | source3/nmbd/nmbd_elections.c | 2 |
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); |