]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r23013: fixed a bug in the string_replace_w() test that caused OpenBSD to die
authorAndrew Tridgell <tridge@samba.org>
Sat, 19 May 2007 07:05:14 +0000 (07:05 +0000)
committerAndrew Tridgell <tridge@samba.org>
Sat, 19 May 2007 07:05:14 +0000 (07:05 +0000)
source/lib/charset/testsuite.c

index 4d2acc30b59a47c0033695d8a00aca4d00384428..db738d0c55bbf5cb31cf80f5123fd4de76a3b84b 100644 (file)
@@ -83,7 +83,7 @@ static bool test_strcsequal_w(struct torture_context *tctx)
 
 static bool test_string_replace_w(struct torture_context *tctx)
 {
-       char data[] = "bla";
+       char data[6] = "bla";
        string_replace_w(data, 'b', 'c');
        torture_assert_str_equal(tctx, data, "cla", "first char replaced");
        memcpy(data, "bab", 4);