]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Fri Apr 18 06:54:40 EDT 2008 Jerry Richards <jerryr at tonecommander dot com>
authorMichael Jerris <mike@jerris.com>
Mon, 21 Apr 2008 22:30:48 +0000 (22:30 +0000)
committerMichael Jerris <mike@jerris.com>
Mon, 21 Apr 2008 22:30:48 +0000 (22:30 +0000)
  * sip_util.c: fixed sip_header_as_string()

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8149 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/sofia-sip/.update
libs/sofia-sip/libsofia-sip-ua/sip/sip_util.c

index 6098f71fbafed77596aca3d4b7d6623734c1fd65..96a532ffbe8b45d2f45940e2be72bbff92e1ba10 100644 (file)
@@ -1 +1 @@
-Mon Apr  7 15:44:29 EDT 2008
+Mon Apr 21 18:30:34 EDT 2008
index e3907150075cc3a9788991e38cb560455ab76da0..ab87a03d3b765d43c02ba1a79c269928ec19e82a 100644 (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 */