summaryrefslogtreecommitdiff
path: root/source4/param/loadparm.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/param/loadparm.c')
-rw-r--r--source4/param/loadparm.c4
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);