[Asterisk-cvs] asterisk frame.c,1.47,1.48

markster at lists.digium.com markster at lists.digium.com
Sun Mar 20 22:36:08 CST 2005


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

Modified Files:
	frame.c 
Log Message:
Add README for jitter buffer (bug #3812), make src char *src a const 


Index: frame.c
===================================================================
RCS file: /usr/cvsroot/asterisk/frame.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -d -r1.47 -r1.48
--- frame.c	5 Mar 2005 20:57:49 -0000	1.47
+++ frame.c	21 Mar 2005 04:30:57 -0000	1.48
@@ -231,7 +231,7 @@
 	}
 	if (fr->mallocd & AST_MALLOCD_SRC) {
 		if (fr->src)
-			free(fr->src);
+			free((char *)fr->src);
 	}
 	if (fr->mallocd & AST_MALLOCD_HDR) {
 #ifdef TRACE_FRAMES
@@ -319,7 +319,7 @@
 	if (srclen > 0) {
 		out->src = out->data + f->datalen;
 		/* Must have space since we allocated for it */
-		strcpy(out->src, f->src);
+		strcpy((char *)out->src, f->src);
 	} else
 		out->src = NULL;
 	out->prev = NULL;




More information about the svn-commits mailing list