s3-winbind: another strlcpy()/fstring fix
authorAndrew Tridgell <tridge@samba.org>
Fri, 6 May 2011 04:49:36 +0000 (14:49 +1000)
committerAndrew Tridgell <tridge@samba.org>
Fri, 6 May 2011 05:50:33 +0000 (07:50 +0200)
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Fri May  6 07:50:33 CEST 2011 on sn-devel-104

source3/winbindd/idmap_hash/mapfile.c

index 1183328a3f165fb7593e4dbc330daef036eb7b90..075f0f25cc42958350d2fc22c0273580300e6c79 100644 (file)
@@ -87,8 +87,8 @@ static bool mapfile_read_line(fstring key, fstring value)
        *p = '\0';
        p++;
 
-       strlcpy(key, buffer, sizeof(key));
-       strlcpy(value, p, sizeof(value));
+       strlcpy(key, buffer, sizeof(fstring));
+       strlcpy(value, p, sizeof(fstring));
 
        /* Eat whitespace */