git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6798444
)
use pstrcpy_base()
author
Jim McDonough
<jmcd@samba.org>
Thu, 20 Mar 2003 14:39:46 +0000
(14:39 +0000)
committer
Jim McDonough
<jmcd@samba.org>
Thu, 20 Mar 2003 14:39:46 +0000
(14:39 +0000)
(This used to be commit
9387caf3cebecd50de2b295560355b779135d8c3
)
source3/nmbd/nmbd_elections.c
patch
|
blob
|
history
diff --git
a/source3/nmbd/nmbd_elections.c
b/source3/nmbd/nmbd_elections.c
index f09c37eedcb592240a7bc5c0ef40a4f2e35d9385..339a27d2078c4ba626844479ad11e397f01809d6 100644
(file)
--- 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);