Commit 5670408a authored by Jerry Richards jerryr at tonecommander dot com's avatar Jerry Richards jerryr at tonecommander dot com
Browse files

sip_util.c: fixed sip_header_as_string()

darcs-hash:20080418105440-4d391-71f91cefc013508060f50ae883361344a380dd62.gz
parent 9d97e270
......@@ -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 */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment