diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-04-27 22:59:20 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:05:08 -0500 |
commit | eaaae31d1105a7abe31918c59ae9bfab0010bb51 (patch) | |
tree | e992d1c1ff99806004a0a60138108b8ec1aadc36 /source4/param | |
parent | b00c2369069c41880598ff430776cc26e8f7b916 (diff) | |
download | samba-eaaae31d1105a7abe31918c59ae9bfab0010bb51.tar.gz samba-eaaae31d1105a7abe31918c59ae9bfab0010bb51.tar.bz2 samba-eaaae31d1105a7abe31918c59ae9bfab0010bb51.zip |
r15302: Remove strangely named function "StrnCpy" - strlcpy is available as a
replacement.
(This used to be commit 72237344cf22dacfaf1d87c3e0b922023fa4afb0)
Diffstat (limited to 'source4/param')
-rw-r--r-- | source4/param/loadparm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/param/loadparm.c b/source4/param/loadparm.c index a033e0815c..b6dec9be9d 100644 --- a/source4/param/loadparm.c +++ b/source4/param/loadparm.c @@ -759,11 +759,11 @@ static const char *lp_string(const char *s) if (!s) *ret = 0; else - StrnCpy(ret, s, len); + strlcpy(ret, s, len); if (trim_string(ret, "\"", "\"")) { if (strchr(ret,'"') != NULL) - StrnCpy(ret, s, len); + strlcpy(ret, s, len); } standard_sub_basic(ret,len+100); |