summaryrefslogtreecommitdiffstats
path: root/source3/winbindd/idmap_hash/mapfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/winbindd/idmap_hash/mapfile.c')
-rw-r--r--source3/winbindd/idmap_hash/mapfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/winbindd/idmap_hash/mapfile.c b/source3/winbindd/idmap_hash/mapfile.c
index 2828059093..075f0f25cc 100644
--- a/source3/winbindd/idmap_hash/mapfile.c
+++ b/source3/winbindd/idmap_hash/mapfile.c
@@ -87,8 +87,8 @@ static bool mapfile_read_line(fstring key, fstring value)
*p = '\0';
p++;
- fstrcpy(key, buffer);
- fstrcpy(value, p);
+ strlcpy(key, buffer, sizeof(fstring));
+ strlcpy(value, p, sizeof(fstring));
/* Eat whitespace */