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 28280590934..075f0f25cc4 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 */