summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2003-03-05 05:19:35 +0000
committerMartin Pool <mbp@samba.org>2003-03-05 05:19:35 +0000
commitf98e4e24b1fd9353c6eb2c28d588e3c2fbc1f00d (patch)
tree989e174daaaaaad5cdb90a45aaaddbc7ba8b6169 /source3/param
parent4c8091ef9cfa6b196355b007d6f280c90a15bae7 (diff)
downloadsamba-f98e4e24b1fd9353c6eb2c28d588e3c2fbc1f00d.tar.gz
samba-f98e4e24b1fd9353c6eb2c28d588e3c2fbc1f00d.tar.bz2
samba-f98e4e24b1fd9353c6eb2c28d588e3c2fbc1f00d.zip
lp_string: Add note about dodgy StrnCpy use.
(This used to be commit b32ae2d83fd0b4dd2c313cd0727bd276564cec0c)
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 246023ba47..f7f12bbe80 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -1516,6 +1516,9 @@ static char *lp_string(const char *s)
if (!ret)
return NULL;
+ /* Note: StrnCpy touches len+1 bytes, but we allocate 100
+ * extra bytes so we're OK. */
+
if (!s)
*ret = 0;
else