Repository: qpid-proton Updated Branches: refs/heads/master 38a8ab79f -> a56b23466
NO-JIRA: [c] fixed test error picked up by newer gcc. Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/a56b2346 Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/a56b2346 Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/a56b2346 Branch: refs/heads/master Commit: a56b23466ad9f7de9bee01a159f586de545e8c9f Parents: 38a8ab7 Author: Alan Conway <acon...@redhat.com> Authored: Wed Aug 8 11:47:56 2018 -0400 Committer: Alan Conway <acon...@redhat.com> Committed: Wed Aug 8 11:47:56 2018 -0400 ---------------------------------------------------------------------- c/tests/connection_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/a56b2346/c/tests/connection_driver.c ---------------------------------------------------------------------- diff --git a/c/tests/connection_driver.c b/c/tests/connection_driver.c index c8e9dbc..796c262 100644 --- a/c/tests/connection_driver.c +++ b/c/tests/connection_driver.c @@ -305,7 +305,7 @@ int send_receive_message(test_t *t, const char* tag, { int errors = t->errors; char data[100] = {0}; /* Dummy data to send. */ - strncpy(data, tag, sizeof(data)); + strncpy(data, tag, sizeof(data)-1); data[99] = 0; /* Ensure terminated as we strcmp this later*/ if (!TEST_CHECK(t, pn_link_credit(src->handler.link))) return 1; --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org