git.samba.org
/
kai
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4c72cf
)
replace pstrcpy
author
Jim McDonough
<jmcd@samba.org>
Wed, 19 Mar 2003 19:32:51 +0000
(19:32 +0000)
committer
Jim McDonough
<jmcd@samba.org>
Wed, 19 Mar 2003 19:32:51 +0000
(19:32 +0000)
(This used to be commit
c6eb950b6879d7566ded33dd6a3853cf2d5310db
)
source3/nmbd/nmbd_elections.c
patch
|
blob
|
history
diff --git
a/source3/nmbd/nmbd_elections.c
b/source3/nmbd/nmbd_elections.c
index 976abbed25763571e5ffd3ed305dc8f04d7f2ac3..f09c37eedcb592240a7bc5c0ef40a4f2e35d9385 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;
-
pstrcpy(p,server_name
);
+
safe_strcpy(p, server_name, sizeof(outbuf) - 1 - (p-outbuf)
);
strupper(p);
p = skip_string(p,1);