Repository: qpid-dispatch Updated Branches: refs/heads/tross-DISPATCH-179-1 af71e0182 -> 43065ad88
DISPATCH-179 Fixed bug in malloc size for a copied string. Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/6a6fd83d Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/6a6fd83d Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/6a6fd83d Branch: refs/heads/tross-DISPATCH-179-1 Commit: 6a6fd83d5d699b046d3fc908a1072264dbbf5308 Parents: af71e01 Author: Ted Ross <[email protected]> Authored: Fri Jan 29 19:06:20 2016 -0500 Committer: Ted Ross <[email protected]> Committed: Fri Jan 29 19:06:20 2016 -0500 ---------------------------------------------------------------------- src/router_core/connections.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/6a6fd83d/src/router_core/connections.c ---------------------------------------------------------------------- diff --git a/src/router_core/connections.c b/src/router_core/connections.c index 6f4e405..be07f6f 100644 --- a/src/router_core/connections.c +++ b/src/router_core/connections.c @@ -251,7 +251,7 @@ qdr_link_t *qdr_link_first_attach(qdr_connection_t *conn, ZERO(link); link->core = conn->core; link->conn = conn; - link->name = (char*) malloc(strlen(name)); + link->name = (char*) malloc(strlen(name) + 1); strcpy(link->name, name); link->link_direction = dir; link->capacity = 32; // TODO - make this configurable --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
