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:
Michael Jerris 2009-05-15 16:07:59 +00:00
parent 6e1af87d26
commit ae9f6cc6d1
2 changed files with 4 additions and 4 deletions

View File

@ -1 +1 @@
Fri May 15 11:06:55 CDT 2009
Fri May 15 11:07:28 CDT 2009

View File

@ -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;
}