summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_echo_tcp_writev_readv.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_echo_tcp_writev_readv.c b/tests/test_echo_tcp_writev_readv.c
index 9f6703f..c7b8dd9 100644
--- a/tests/test_echo_tcp_writev_readv.c
+++ b/tests/test_echo_tcp_writev_readv.c
@@ -68,7 +68,8 @@ static void test_writev_readv_ipv4(void **state)
for (j = 0; j < i; j++) {
memset(send_buf[j], 0, 64);
- snprintf(send_buf[j], sizeof(send_buf), "packet.%d", j);
+ snprintf(send_buf[j], sizeof(send_buf[j]),
+ "packet.%d", j);
iov_send[j].iov_base = send_buf[j];
iov_send[j].iov_len = strlen(send_buf[j]);
@@ -132,7 +133,8 @@ static void test_writev_readv_ipv6(void **state)
for (j = 0; j < i; j++) {
memset(send_buf[j], 0, 64);
- snprintf(send_buf[j], sizeof(send_buf), "packet.%d", j);
+ snprintf(send_buf[j], sizeof(send_buf[j]),
+ "packet.%d", j);
iov_send[j].iov_base = send_buf[j];
iov_send[j].iov_len = strlen(send_buf[j]);