diff options
author | Richard Mudgett <rmudgett@digium.com> | 2012-03-13 16:50:06 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2012-03-13 16:50:06 +0000 |
commit | c7315c4283490f79148b566d6c4031534964ab23 (patch) | |
tree | 203c049806c27704297ac69090ad219673994390 /main/format.c | |
parent | 9af5c769c360b655abbda2fef63beffd5f9d91e4 (diff) |
Use struct copy instead of memcpy().
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@358858 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/format.c')
-rw-r--r-- | main/format.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/format.c b/main/format.c index 3af0f15f8..8e9e3b929 100644 --- a/main/format.c +++ b/main/format.c @@ -81,7 +81,7 @@ static int interface_hash_cb(const void *obj, const int flags) 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) |