diff options
author | Jim McDonough <jmcd@samba.org> | 2003-03-20 14:39:46 +0000 |
---|---|---|
committer | Jim McDonough <jmcd@samba.org> | 2003-03-20 14:39:46 +0000 |
commit | 29d734a93cf3baa902502852bd246b387d6e8f93 (patch) | |
tree | 8a47c68e94f7b26f0ccf10dafb1b662b284afb15 /source3 | |
parent | 6798444ba5de8424578823aaf85b3fd9c65cc4f6 (diff) | |
download | samba-29d734a93cf3baa902502852bd246b387d6e8f93.tar.gz samba-29d734a93cf3baa902502852bd246b387d6e8f93.tar.bz2 samba-29d734a93cf3baa902502852bd246b387d6e8f93.zip |
use pstrcpy_base()
(This used to be commit 9387caf3cebecd50de2b295560355b779135d8c3)
Diffstat (limited to 'source3')
-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); |