[asterisk-commits] rmudgett: branch 11 r380856 - /branches/11/apps/confbridge/conf_config_parser.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Feb 5 12:16:59 CST 2013
Author: rmudgett
Date: Tue Feb 5 12:16:55 2013
New Revision: 380856
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=380856
Log:
Because the compiler can check types with a struct copy and memcpy() cannot.
Modified:
branches/11/apps/confbridge/conf_config_parser.c
Modified: branches/11/apps/confbridge/conf_config_parser.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/apps/confbridge/conf_config_parser.c?view=diff&rev=380856&r1=380855&r2=380856
==============================================================================
--- branches/11/apps/confbridge/conf_config_parser.c (original)
+++ branches/11/apps/confbridge/conf_config_parser.c Tue Feb 5 12:16:55 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