Changeset 491 for pjproject/trunk/pjsip/src/pjsip/sip_msg.c
- Timestamp:
- Jun 6, 2006 5:04:30 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_msg.c
r453 r491 365 365 /* Process message body. */ 366 366 if (msg->body) { 367 enum { CLEN_SPACE = 12};367 enum { CLEN_SPACE = 5 }; 368 368 char *clen_pos = NULL; 369 369 … … 394 394 p += clen_hdr.slen; 395 395 396 /* Print blanks after "Content- Type:", this is where we'll put396 /* Print blanks after "Content-Length:", this is where we'll put 397 397 * the content length value after we know the length of the 398 398 * body. … … 420 420 */ 421 421 if (clen_pos) { 422 char tmp[ CLEN_SPACE];422 char tmp[16]; 423 423 len = pj_utoa(len, tmp); 424 if (len > CLEN_SPACE) len = CLEN_SPACE; 424 425 pj_memcpy(clen_pos+CLEN_SPACE-len, tmp, len); 425 426 } … … 434 435 pj_memcpy(p, clen_hdr.ptr, clen_hdr.slen); 435 436 p += clen_hdr.slen; 437 *p++ = ' '; 436 438 *p++ = '0'; 437 439 *p++ = '\r';
Note: See TracChangeset
for help on using the changeset viewer.