[asterisk-commits] rmudgett: trunk r380858 - in /trunk: ./ apps/confbridge/conf_config_parser.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Feb 5 12:17:41 CST 2013


Author: rmudgett
Date: Tue Feb  5 12:17:29 2013
New Revision: 380858

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=380858
Log:
Because the compiler can check types with a struct copy and memcpy() cannot.
........

Merged revisions 380856 from http://svn.asterisk.org/svn/asterisk/branches/11

Modified:
    trunk/   (props changed)
    trunk/apps/confbridge/conf_config_parser.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-11-merged' - no diff available.

Modified: trunk/apps/confbridge/conf_config_parser.c
URL: http://svnview.digium.com/svn/asterisk/trunk/apps/confbridge/conf_config_parser.c?view=diff&rev=380858&r1=380857&r2=380858
==============================================================================
--- trunk/apps/confbridge/conf_config_parser.c (original)
+++ trunk/apps/confbridge/conf_config_parser.c Tue Feb  5 12:17:29 2013
@@ -1355,7 +1355,7 @@
 
 static void conf_user_profile_copy(struct user_profile *dst, struct user_profile *src)
 {
-	memcpy(dst, src, sizeof(*dst));
+	*dst = *src;
 }
 
 const struct user_profile *conf_find_user_profile(struct ast_channel *chan, const char *user_profile_name, struct user_profile *result)




More information about the asterisk-commits mailing list