Changeset 453 for pjproject/trunk
- Timestamp:
- May 17, 2006 9:24:14 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_msg.c
r315 r453 365 365 /* Process message body. */ 366 366 if (msg->body) { 367 enum { CLEN_SPACE = 12 }; 367 368 char *clen_pos = NULL; 368 369 … … 397 398 * body. 398 399 */ 399 pj_memset(p, ' ', 12);400 pj_memset(p, ' ', CLEN_SPACE); 400 401 clen_pos = p; 401 p += 12;402 p += CLEN_SPACE; 402 403 *p++ = '\r'; 403 404 *p++ = '\n'; … … 419 420 */ 420 421 if (clen_pos) { 421 len = pj_utoa(len, clen_pos); 422 clen_pos[len] = ' '; 422 char tmp[CLEN_SPACE]; 423 len = pj_utoa(len, tmp); 424 pj_memcpy(clen_pos+CLEN_SPACE-len, tmp, len); 423 425 } 424 426
Note: See TracChangeset
for help on using the changeset viewer.