mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 20:50:41 +00:00
Wed May 13 11:18:27 CDT 2009 Pekka Pessi <first.last@nokia.com>
* msg_header_copy.c: unobfuscated msg_default_dup_one() Ignore-this: 1fda1941baecad1f6397de453e606f1c Coverity issue. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13340 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
6e1af87d26
commit
ae9f6cc6d1
@ -1 +1 @@
|
||||
Fri May 15 11:06:55 CDT 2009
|
||||
Fri May 15 11:07:28 CDT 2009
|
||||
|
@ -346,9 +346,9 @@ char *msg_default_dup_one(msg_header_t *h,
|
||||
char *b,
|
||||
isize_t xtra)
|
||||
{
|
||||
memcpy(&h->sh_header_next[1],
|
||||
&src->sh_header_next[1],
|
||||
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user