[Freeswitch-svn] [commit] r12069 - freeswitch/trunk/src/mod/applications/mod_http

FreeSWITCH SVN mikej at freeswitch.org
Mon Feb 16 12:34:46 PST 2009


Author: mikej
Date: Mon Feb 16 14:34:46 2009
New Revision: 12069

Log:
fix printf specifier bug

Modified:
   freeswitch/trunk/src/mod/applications/mod_http/http_req.c

Modified: freeswitch/trunk/src/mod/applications/mod_http/http_req.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_http/http_req.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_http/http_req.c	Mon Feb 16 14:34:46 2009
@@ -245,7 +245,7 @@
 	else
 		dprintf(s, "Host: %s\r\n", hostname);
 	dprintf(s, "Connection: close\r\n");
-	dprintf(s, "Content-Length: %ld\r\n", req->body_len);
+	dprintf(s, "Content-Length: %d\r\n", (int)req->body_len);
 
 	for (i = 0; i < req->header_len; i++) {
 		dprintf(s, "%s: %s\r\n", req->headers[i].field_name, req->headers[i].value);



More information about the Freeswitch-svn mailing list