aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-06-11 21:30:31 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-06-11 21:30:31 +0200
commitb29f4705834e2405be1335777c9143bea512a7a5 (patch)
treee38762fa33bb7f71cdb4d6636e73964fe45b3787 /tests
parent568407d41005664dd127d439511d85997df92ea7 (diff)
downloadliberty-b29f4705834e2405be1335777c9143bea512a7a5.tar.gz
liberty-b29f4705834e2405be1335777c9143bea512a7a5.tar.xz
liberty-b29f4705834e2405be1335777c9143bea512a7a5.zip
IRC: fix tests
Diffstat (limited to 'tests')
-rw-r--r--tests/proto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/proto.c b/tests/proto.c
index 8264d75..8a3b1a9 100644
--- a/tests/proto.c
+++ b/tests/proto.c
@@ -66,8 +66,8 @@ test_irc (void)
const char *n[2] = { "[fag]^", "{FAG}~" };
soft_assert (!irc_strcmp (n[0], n[1]));
- char a[irc_strxfrm (NULL, n[0], 0)]; irc_strxfrm (a, n[0], sizeof a);
- char b[irc_strxfrm (NULL, n[1], 0)]; irc_strxfrm (b, n[1], sizeof b);
+ char a[irc_strxfrm (NULL, n[0], 0) + 1]; irc_strxfrm (a, n[0], sizeof a);
+ char b[irc_strxfrm (NULL, n[1], 0) + 1]; irc_strxfrm (b, n[1], sizeof b);
soft_assert (!strcmp (a, b));
// TODO: more tests