Repository: qpid-dispatch Updated Branches: refs/heads/master 840a2b4ad -> 0001edca5
NO-JIRA: Repair yesterday's NO-JIRA fix that miscalculates strlen Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/0001edca Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/0001edca Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/0001edca Branch: refs/heads/master Commit: 0001edca50bd80600d79c4dd4786773d6555abfb Parents: 840a2b4 Author: Chuck Rolke <[email protected]> Authored: Fri May 25 08:33:28 2018 -0400 Committer: Chuck Rolke <[email protected]> Committed: Fri May 25 08:33:28 2018 -0400 ---------------------------------------------------------------------- src/policy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/0001edca/src/policy.c ---------------------------------------------------------------------- diff --git a/src/policy.c b/src/policy.c index 377aeac..c7f9e50 100644 --- a/src/policy.c +++ b/src/policy.c @@ -535,7 +535,7 @@ char * _qd_policy_link_user_name_subst(const char *uname, const char *proposed, obuf += copysize; // Copy the substitution string - segsize = sizeof(duser); + segsize = sizeof(duser) - 1; copysize = MIN(osize, segsize); if (copysize) strncpy(obuf, duser, copysize); --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
