diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-05-10 12:37:26 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-05-10 12:37:26 +0000 |
commit | e45e0093094fd7e7dd44531bff74188b67869cc4 (patch) | |
tree | 759d02c3d80bb7c87e817a959c79003f19d25b7a /loadparm.c | |
parent | 45ccc5c08c0765171721211e8e97c1ccf3db6978 (diff) | |
download | rsync-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |