projects
/
asterisk/asterisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use struct copy instead of memcpy().
[asterisk/asterisk.git]
/
main
/
format.c
diff --git
a/main/format.c
b/main/format.c
index
3af0f15
..
8e9e3b9
100644
(file)
--- 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)
{
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)
}
void ast_format_set_video_mark(struct ast_format *format)