summaryrefslogtreecommitdiff
path: root/loadparm.c
diff options
context:
space:
mode:
Diffstat (limited to 'loadparm.c')
-rw-r--r--loadparm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/loadparm.c b/loadparm.c
index 81c4943a..09fdd5aa 100644
--- a/loadparm.c
+++ b/loadparm.c
@@ -51,7 +51,7 @@
#define strequal(a,b) (strcasecmp(a,b)==0)
#define BOOLSTR(b) ((b) ? "Yes" : "No")
typedef char pstring[1024];
-#define pstrcpy(a,b) strlcpy(a,b,sizeof(pstring)-1)
+#define pstrcpy(a,b) strlcpy(a,b,sizeof(pstring))
/* the following are used by loadparm for option lists */
typedef enum
@@ -610,7 +610,7 @@ static BOOL lp_do_parameter(int snum, char *parmname, char *parmvalue)
break;
case P_GSTRING:
- strlcpy((char *)parm_ptr,parmvalue,sizeof(pstring)-1);
+ strlcpy((char *)parm_ptr,parmvalue,sizeof(pstring));
break;
case P_ENUM: