summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/charset/testsuite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/charset/testsuite.c b/source4/lib/charset/testsuite.c
index 4d2acc30b5..db738d0c55 100644
--- a/source4/lib/charset/testsuite.c
+++ b/source4/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);