diff options
author | Martin Pool <mbp@samba.org> | 2003-03-05 05:19:35 +0000 |
---|---|---|
committer | Martin Pool <mbp@samba.org> | 2003-03-05 05:19:35 +0000 |
commit | f98e4e24b1fd9353c6eb2c28d588e3c2fbc1f00d (patch) | |
tree | 989e174daaaaaad5cdb90a45aaaddbc7ba8b6169 /source3/param | |
parent | 4c8091ef9cfa6b196355b007d6f280c90a15bae7 (diff) | |
download | samba-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.c | 3 |
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 |