Fix warning messages caused by addition of null check in fstrcpy macro.
[metze/samba-autobuild/.git] / source3 / winbindd / idmap_hash / mapfile.c
index 28280590934f95fb242f60709780ce0a2e5fa207..1183328a3f165fb7593e4dbc330daef036eb7b90 100644 (file)
@@ -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(key));
+       strlcpy(value, p, sizeof(value));
 
        /* Eat whitespace */