Commit c08cf003 authored by Michael Jerris's avatar Michael Jerris Committed by Pekka Pessi

sdp: don't assert on too small sdp struct

parent f0fed953
......@@ -63,7 +63,7 @@ const unsigned sdp_struct_align_ = sizeof(void *) - STRUCT_ALIGN_;
#define STRUCT_DUP(p, dst, src) \
ASSERT_STRUCT_ALIGN(p); assert(*(int*)(src) >= (int)sizeof(*src)); \
ASSERT_STRUCT_ALIGN(p); \
((*(int*)(src) >= (int)sizeof(*src) \
? (dst = memcpy((p), (src), sizeof(*src))) \
: (dst = memcpy((p), (src), *(int*)(src))), \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment