Fri Apr 18 06:54:40 EDT 2008 Jerry Richards <jerryr at tonecommander dot com>

* sip_util.c: fixed sip_header_as_string()



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8149 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2008-04-21 22:30:48 +00:00
parent b894df4fd9
commit 415d1c58d4
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
Mon Apr 7 15:44:29 EDT 2008
Mon Apr 21 18:30:34 EDT 2008

View File

@ -412,7 +412,7 @@ char *sip_header_as_string(su_home_t *home, sip_header_t const *h)
for (rv = su_alloc(home, len);
rv;
rv = su_realloc(home, rv, len)) {
ssize_t n = sip_header_field_e(s, sizeof(s), h, 0);
ssize_t n = sip_header_field_e(rv, len, h, 0);
if (n > -1 && n + 1 <= len)
break;
if (n > -1) /* glibc >2.1 */