Ignore:
Timestamp:
Jun 6, 2006 5:04:30 PM (18 years ago)
Author:
bennylp
Message:

More information in error reporting on parsing error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_msg.c

    r453 r491  
    365365    /* Process message body. */ 
    366366    if (msg->body) { 
    367         enum { CLEN_SPACE = 12 }; 
     367        enum { CLEN_SPACE = 5 }; 
    368368        char *clen_pos = NULL; 
    369369 
     
    394394            p += clen_hdr.slen; 
    395395             
    396             /* Print blanks after "Content-Type:", this is where we'll put 
     396            /* Print blanks after "Content-Length:", this is where we'll put 
    397397             * the content length value after we know the length of the 
    398398             * body. 
     
    420420         */ 
    421421        if (clen_pos) { 
    422             char tmp[CLEN_SPACE]; 
     422            char tmp[16]; 
    423423            len = pj_utoa(len, tmp); 
     424            if (len > CLEN_SPACE) len = CLEN_SPACE; 
    424425            pj_memcpy(clen_pos+CLEN_SPACE-len, tmp, len); 
    425426        } 
     
    434435        pj_memcpy(p, clen_hdr.ptr, clen_hdr.slen); 
    435436        p += clen_hdr.slen; 
     437        *p++ = ' '; 
    436438        *p++ = '0'; 
    437439        *p++ = '\r'; 
Note: See TracChangeset for help on using the changeset viewer.