diff --git a/libs/sofia-sip/.update b/libs/sofia-sip/.update index e5d982acec..877487d471 100644 --- a/libs/sofia-sip/.update +++ b/libs/sofia-sip/.update @@ -1 +1 @@ -Fri May 15 11:06:55 CDT 2009 +Fri May 15 11:07:28 CDT 2009 diff --git a/libs/sofia-sip/libsofia-sip-ua/msg/msg_header_copy.c b/libs/sofia-sip/libsofia-sip-ua/msg/msg_header_copy.c index bcae541382..06c75bc9f6 100644 --- a/libs/sofia-sip/libsofia-sip-ua/msg/msg_header_copy.c +++ b/libs/sofia-sip/libsofia-sip-ua/msg/msg_header_copy.c @@ -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; }