fixed the MANGLE smbtorture test with the new paranoid string code
authorAndrew Tridgell <tridge@samba.org>
Tue, 11 Mar 2003 06:53:10 +0000 (06:53 +0000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 11 Mar 2003 06:53:10 +0000 (06:53 +0000)
(This used to be commit 7be44dbe009a8d831c0720a2649fc871b067beef)

source3/torture/mangle_test.c

index 86030027ba00f381cfc1ff4e314c4c4d3b54c115..d1475eb64e96c3dc2f91b3c3466aa6d8115b1b80 100644 (file)
@@ -135,7 +135,7 @@ static void gen_name(char *name)
 
        /* and a medium probability of a common lead string */
        if (random() % 10 == 0) {
-               strncpy(p, "ABCDE", 5);
+               strncpy(p, "ABCDE", 6);
        }
 
        /* and a high probability of a good extension length */