summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2007-05-19 07:05:14 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:52:39 -0500
commitd2872b42f36ceac89970e3c1596300fa55ff7c50 (patch)
treeeb6ca844e95a0e5fe69777caaba874aeebaae1d3 /source4
parent7bdc1a8ec9ead892b0b25e8f3b8c30f3fdde8e13 (diff)
downloadsamba-d2872b42f36ceac89970e3c1596300fa55ff7c50.tar.gz
samba-d2872b42f36ceac89970e3c1596300fa55ff7c50.tar.bz2
samba-d2872b42f36ceac89970e3c1596300fa55ff7c50.zip
r23013: fixed a bug in the string_replace_w() test that caused OpenBSD to die
(This used to be commit 1fe20a4555aac6f011eca98f138e125de0de4321)
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);