summaryrefslogtreecommitdiff
path: root/loadparm.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-05-10 12:37:26 +0000
committerAndrew Tridgell <tridge@samba.org>1998-05-10 12:37:26 +0000
commite45e0093094fd7e7dd44531bff74188b67869cc4 (patch)
tree759d02c3d80bb7c87e817a959c79003f19d25b7a /loadparm.c
parent45ccc5c08c0765171721211e8e97c1ccf3db6978 (diff)
downloadrsync-e45e0093094fd7e7dd44531bff74188b67869cc4.tar.gz
rsync-e45e0093094fd7e7dd44531bff74188b67869cc4.tar.bz2
rsync-e45e0093094fd7e7dd44531bff74188b67869cc4.zip
changed a couple of places to use strlcpy()
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 a66f5206..7fff24f0 100644
--- a/loadparm.c
+++ b/loadparm.c
@@ -52,7 +52,7 @@
#define strequal(a,b) (strcasecmp(a,b)==0)
#define BOOLSTR(b) ((b) ? "Yes" : "No")
typedef char pstring[1024];
-#define pstrcpy(a,b) strcpy(a,b)
+#define pstrcpy(a,b) strlcpy(a,b,sizeof(pstring)-1)
/* the following are used by loadparm for option lists */
typedef enum