[Asterisk-cvs] asterisk/channels chan_mgcp.c,1.79.2.2,1.79.2.3

russell at lists.digium.com russell at lists.digium.com
Mon Oct 11 22:28:31 CDT 2004


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv27708/channels

Modified Files:
      Tag: v1-0
	chan_mgcp.c 
Log Message:
add missing \n (bug #2595)


Index: chan_mgcp.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_mgcp.c,v
retrieving revision 1.79.2.2
retrieving revision 1.79.2.3
diff -u -d -r1.79.2.2 -r1.79.2.3
--- chan_mgcp.c	6 Oct 2004 22:26:10 -0000	1.79.2.2
+++ chan_mgcp.c	12 Oct 2004 02:29:08 -0000	1.79.2.3
@@ -1785,7 +1785,7 @@
 
 static int respprep(struct mgcp_request *resp, struct mgcp_endpoint *p, char *msg, struct mgcp_request *req, char *msgrest)
 {
-	memset(resp, 0, sizeof(*resp));
+	memset(resp, 0, sizeof(struct mgcp_request));
 	init_resp(resp, msg, req, msgrest);
 	return 0;
 }
@@ -3140,7 +3140,7 @@
 	int ident;
 	char iabuf[INET_ADDRSTRLEN];
 	len = sizeof(sin);
-	memset(&req, 0, sizeof(req));
+	memset(&req, 0, sizeof(struct mgcp_request));
 	res = recvfrom(mgcpsock, req.data, sizeof(req.data) - 1, 0, (struct sockaddr *)&sin, &len);
 	if (res < 0) {
 		if (errno != ECONNREFUSED)
@@ -3150,8 +3150,8 @@
 	req.data[res] = '\0';
 	req.len = res;
 	if (mgcpdebug) {
-		ast_verbose("MGCP read: \n%s\nfrom %s:%d", req.data, ast_inet_ntoa(iabuf, sizeof(iabuf), sin.sin_addr), ntohs(sin.sin_port));
-    }
+		ast_verbose("MGCP read: \n%s\nfrom %s:%d\n", req.data, ast_inet_ntoa(iabuf, sizeof(iabuf), sin.sin_addr), ntohs(sin.sin_port));
+	}
 	parse(&req);
 	if (req.headers < 1) {
 		/* Must have at least one header */




More information about the svn-commits mailing list