diff options
author | Richard Mudgett <rmudgett@digium.com> | 2013-02-05 18:17:29 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2013-02-05 18:17:29 +0000 |
commit | 08fdb4646ecad32b0acb3c579f8ae7cb77429ffb (patch) | |
tree | 5d03e52c857bafbdd3f2d05d4e3ec8c2828744d6 /apps/confbridge/conf_config_parser.c | |
parent | 657aa491f00b7a3693ab8ddfb4623f516fda33b0 (diff) |
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
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@380858 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/confbridge/conf_config_parser.c')
-rw-r--r-- | apps/confbridge/conf_config_parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/confbridge/conf_config_parser.c b/apps/confbridge/conf_config_parser.c index dfedffe97..c915b184c 100644 --- a/apps/confbridge/conf_config_parser.c +++ b/apps/confbridge/conf_config_parser.c @@ -1355,7 +1355,7 @@ error: 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) |