fix windows build error
This commit is contained in:
parent
17574a88e4
commit
357ffad817
|
@ -395,6 +395,7 @@ char *sip_header_as_string(su_home_t *home, sip_header_t const *h)
|
|||
{
|
||||
ssize_t len;
|
||||
char *rv, s[256];
|
||||
ssize_t n;
|
||||
|
||||
if (h == NULL)
|
||||
return NULL;
|
||||
|
@ -413,7 +414,7 @@ char *sip_header_as_string(su_home_t *home, sip_header_t const *h)
|
|||
rv;
|
||||
rv = su_realloc(home, rv, len)) {
|
||||
memset(rv,0,len);
|
||||
ssize_t n = sip_header_field_e(rv, len, h, 0);
|
||||
n = sip_header_field_e(rv, len, h, 0);
|
||||
if (n > -1 && n + 1 <= len)
|
||||
break;
|
||||
if (n > -1) /* glibc >2.1 */
|
||||
|
|
Loading…
Reference in New Issue