From c7315c4283490f79148b566d6c4031534964ab23 Mon Sep 17 00:00:00 2001 From: Richard Mudgett Date: Tue, 13 Mar 2012 16:50:06 +0000 Subject: Use struct copy instead of memcpy(). git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@358858 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main') 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) -- cgit v1.2.3