qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kgiu...@apache.org
Subject qpid-dispatch git commit: DISPATCH-1103: fix array length calculation
Date Fri, 24 Aug 2018 20:22:48 GMT
Repository: qpid-dispatch
Updated Branches:
  refs/heads/master c65fbc9d8 -> 4892bfaa6


DISPATCH-1103: fix array length calculation


Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/4892bfaa
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/4892bfaa
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/4892bfaa

Branch: refs/heads/master
Commit: 4892bfaa6c5d1439ea4df26031cb37d088be1b82
Parents: c65fbc9
Author: Kenneth Giusti <kgiusti@apache.org>
Authored: Fri Aug 24 16:22:27 2018 -0400
Committer: Kenneth Giusti <kgiusti@apache.org>
Committed: Fri Aug 24 16:22:27 2018 -0400

----------------------------------------------------------------------
 src/router_core/route_control.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/4892bfaa/src/router_core/route_control.c
----------------------------------------------------------------------
diff --git a/src/router_core/route_control.c b/src/router_core/route_control.c
index 6b5e62e..fff2c74 100644
--- a/src/router_core/route_control.c
+++ b/src/router_core/route_control.c
@@ -417,7 +417,7 @@ void qdr_route_auto_link_detached_CT(qdr_core_t *core, qdr_link_t *link)
     int error_length = 0;
     if (link->auto_link->last_error)
         error_length = strlen(link->auto_link->last_error);
-    int total_length = strlen(activation_failed);
+    int total_length = strlen(activation_failed) + 1;
     if (error_length)
         total_length += error_length;
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message