From: Andrew Tridgell Date: Sat, 19 May 2007 07:05:14 +0000 (+0000) Subject: r23013: fixed a bug in the string_replace_w() test that caused OpenBSD to die X-Git-Tag: talloc-1.0.1~72 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=02f73553588b08e15fe6df4734c1c992e08c866b;p=thirdparty%2Fsamba.git r23013: fixed a bug in the string_replace_w() test that caused OpenBSD to die --- diff --git a/source/lib/charset/testsuite.c b/source/lib/charset/testsuite.c index 4d2acc30b59..db738d0c55b 100644 --- a/source/lib/charset/testsuite.c +++ b/source/lib/charset/testsuite.c @@ -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);