Fix off-by-one bug in safe_strcpy size paramater.
authorAndrew Bartlett <abartlet@samba.org>
Sat, 15 Mar 2003 06:54:09 +0000 (06:54 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 15 Mar 2003 06:54:09 +0000 (06:54 +0000)
(This used to be commit 9af30c9aae3623c4db1edca39a91973f0279acb4)

source3/utils/smbcacls.c

index a5cee0dae1202593a9069cf138ffd0e3747bb578..bce64df960416822aef3028b3170d885dbfec0c8 100644 (file)
@@ -916,7 +916,7 @@ You can string acls together with spaces, commas or newlines\n\
        if (filename[0] != '\\') {
                pstring s;
                s[0] = '\\';
-               safe_strcpy(&s[1], filename, sizeof(pstring)-1);
+               safe_strcpy(&s[1], filename, sizeof(pstring)-2);
                pstrcpy(filename, s);
        }