Changeset 1635
- Timestamp:
- Dec 17, 2007 12:16:08 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/sdp.c
r1417 r1635 249 249 PJ_ASSERT_RETURN(attr->value.slen != 0, PJMEDIA_SDP_EINATTR); 250 250 251 init_sdp_parser(); 252 251 253 /* Check if input is null terminated, and null terminate if 252 254 * necessary. Unfortunately this may crash the application if … … 367 369 PJ_ASSERT_RETURN(pj_strcmp2(&attr->name, "rtcp")==0, PJ_EINVALIDOP); 368 370 371 init_sdp_parser(); 372 369 373 /* fmtp BNF: 370 374 * a=rtcp:<port> [nettype addrtype address] … … 464 468 attr->value.slen = len; 465 469 attr->value.ptr = (char*) pj_pool_alloc(pool, attr->value.slen); 466 pj_memcpy(attr->value.ptr, tempbuf, attr->value.slen );470 pj_memcpy(attr->value.ptr, tempbuf, attr->value.slen+1); 467 471 468 472 *p_attr = attr;
Note: See TracChangeset
for help on using the changeset viewer.