summaryrefslogtreecommitdiff
path: root/loadparm.c
diff options
context:
space:
mode:
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