Changeset 3815


Ignore:
Timestamp:
Oct 14, 2011 2:08:44 AM (13 years ago)
Author:
bennylp
Message:

Fixed #1387: Bug in printing user defined header in multipart message (thanks Luis Martin Gil for the patch)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x/pjsip/src/pjsip/sip_multipart.c

    r3553 r3815  
    8282        hdr = part->hdr.next; 
    8383        while (hdr != &part->hdr) { 
    84             int printed = pjsip_hdr_print_on((pjsip_hdr*)hdr, p, SIZE_LEFT()); 
     84            int printed = pjsip_hdr_print_on((pjsip_hdr*)hdr, p, 
     85                                             SIZE_LEFT()-2); 
    8586            if (printed < 0) 
    8687                return -1; 
    8788            p += printed; 
     89            *p++ = '\r'; 
     90            *p++ = '\n'; 
    8891            hdr = hdr->next; 
    8992        } 
Note: See TracChangeset for help on using the changeset viewer.