[Pkg-voip-commits] [janus] 251/282: Fixed problem of printing non-terminated string when logging in SCTP code

Jonas Smedegaard dr at jones.dk
Wed Dec 20 21:53:46 UTC 2017


This is an automated email from the git hooks/post-receive script.

js pushed a commit to annotated tag debian/0.2.6-1
in repository janus.

commit 7f01386ea110cb90cbefa2905da4aa741abf2a64
Author: Lorenzo Miniero <lminiero at gmail.com>
Date:   Wed Dec 6 16:54:09 2017 +0100

    Fixed problem of printing non-terminated string when logging in SCTP code
---
 sctp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sctp.c b/sctp.c
index e9510d3..a3bba34 100644
--- a/sctp.c
+++ b/sctp.c
@@ -340,7 +340,7 @@ static int janus_sctp_incoming_data(struct socket *sock, union sctp_sockstore ad
 void janus_sctp_send_data(janus_sctp_association *sctp, char *buf, int len) {
 	if(sctp == NULL || buf == NULL || len <= 0)
 		return;
-	JANUS_LOG(LOG_VERB, "[%"SCNu64"] SCTP data to send (%d bytes) coming from a plugin: %s\n", sctp->handle_id, len, buf);
+	JANUS_LOG(LOG_VERB, "[%"SCNu64"] SCTP data to send (%d bytes) coming from a plugin: %.*s\n", sctp->handle_id, len, len, buf);
 	/* FIXME Is there any open channel we can use? */
 	int i = 0, found = 0;
 	for(i = 0; i < NUMBER_OF_CHANNELS; i++) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/janus.git



More information about the Pkg-voip-commits mailing list