[asterisk-commits] rmudgett: trunk r358858 - /trunk/main/format.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Mar 13 11:50:11 CDT 2012


Author: rmudgett
Date: Tue Mar 13 11:50:06 2012
New Revision: 358858

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=358858
Log:
Use struct copy instead of memcpy().

Modified:
    trunk/main/format.c

Modified: trunk/main/format.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/format.c?view=diff&rev=358858&r1=358857&r2=358858
==============================================================================
--- trunk/main/format.c (original)
+++ trunk/main/format.c Tue Mar 13 11:50:06 2012
@@ -81,7 +81,7 @@
 
 void ast_format_copy(struct ast_format *dst, const struct ast_format *src)
 {
-	memcpy(dst, src, sizeof(struct ast_format));
+	*dst = *src;
 }
 
 void ast_format_set_video_mark(struct ast_format *format)




More information about the asterisk-commits mailing list