aboutsummaryrefslogtreecommitdiffstats
path: root/loadparm.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-05-15 10:34:07 +0000
committerAndrew Tridgell <tridge@samba.org>1998-05-15 10:34:07 +0000
commit1a016bfdec2823c6d4e78a3dcc253cdfc30a10af (patch)
tree29309074e9289d6367c22634848c86bb819f0993 /loadparm.c
parente42c9458c2f1e3a78d6d45e99741d6edb38fc0cc (diff)
downloadandroid_external_rsync-1a016bfdec2823c6d4e78a3dcc253cdfc30a10af.tar.gz
android_external_rsync-1a016bfdec2823c6d4e78a3dcc253cdfc30a10af.tar.bz2
android_external_rsync-1a016bfdec2823c6d4e78a3dcc253cdfc30a10af.zip
- changed the log messages to show the requested path
- some more paranoid buffer size checks - separate open syslog call - handle systems without LOG_NDELAY
Diffstat (limited to 'loadparm.c')
-rw-r--r--loadparm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/loadparm.c b/loadparm.c
index 52fdaa8a..bf764d5e 100644
--- a/loadparm.c
+++ b/loadparm.c
@@ -583,7 +583,7 @@ static BOOL lp_do_parameter(int snum, char *parmname, char *parmvalue)
break;
case P_GSTRING:
- strcpy((char *)parm_ptr,parmvalue);
+ strlcpy((char *)parm_ptr,parmvalue,sizeof(pstring)-1);
break;
case P_ENUM: