Module: sip-router Branch: kamailio_3.0 Commit: d1c24f0fac36438961ce91c5e3c1a4d6a9677504 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d1c24f0f...
Author: Andrei Pelinescu-Onciul andrei@iptel.org Committer: Andrei Pelinescu-Onciul andrei@iptel.org Date: Tue Feb 2 17:40:22 2010 +0100
core: fix bogus gcc-4.4 warning (cherry picked from commit 3a99415a7df46e2fd63698ee407c5075aac01846)
---
ip_addr.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ip_addr.h b/ip_addr.h index 2983e46..4f027ec 100644 --- a/ip_addr.h +++ b/ip_addr.h @@ -696,7 +696,7 @@ static inline char* su2a(union sockaddr_union* su, int su_len) if (unlikely(su_len<sizeof(su->sin6))) return "<addr. error>"; buf[0]='['; - offs=1+ip6tosbuf((unsigned char*)&su->sin6.sin6_addr, &buf[1], + offs=1+ip6tosbuf((unsigned char*)su->sin6.sin6_addr.s6_addr, &buf[1], sizeof(buf)-4); buf[offs]=']'; offs++;