diff options
-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) |