Commit c9887a6b authored by Pekka Pessi's avatar Pekka Pessi
Browse files

msg_header_copy.c: unobfuscated msg_default_dup_one()

Ignore-this: 1fda1941baecad1f6397de453e606f1c

Coverity issue.

parent 9e0cdfab
......@@ -346,9 +346,9 @@ char *msg_default_dup_one(msg_header_t *h,
char *b,
isize_t xtra)
h->sh_class->hc_size - offsetof(msg_header_t, sh_header_next[1]));
size_t skip = offsetof(msg_numeric_t, x_value); /* Skip common part */
memcpy((char *)h + skip, (char const *)src + skip, h->sh_class->hc_size - skip);
return b;
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