[Asterisk-cvs] asterisk/channels iax2-parser.c,1.16,1.17

markster at lists.digium.com markster at lists.digium.com
Thu Mar 18 01:09:28 CST 2004


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

Modified Files:
	iax2-parser.c 
Log Message:
Fix parser


Index: iax2-parser.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/iax2-parser.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- iax2-parser.c	18 Mar 2004 06:01:53 -0000	1.16
+++ iax2-parser.c	18 Mar 2004 06:04:22 -0000	1.17
@@ -64,7 +64,7 @@
 static void dump_int(char *output, int maxlen, void *value, int len)
 {
 	if (len == sizeof(unsigned int))
-		snprintf(output, maxlen, "%ld", (long)ntohl(*((unsigned int *)value)));
+		snprintf(output, maxlen, "%lu", (unsigned long)ntohl(*((unsigned int *)value)));
 	else
 		snprintf(output, maxlen, "Invalid INT");
 }




More information about the svn-commits mailing list