- Timestamp:
- Oct 29, 2015 1:27:02 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/sdp.c
r5190 r5192 202 202 203 203 PJ_ASSERT_RETURN(count && attr_array && name, PJ_EINVAL); 204 PJ_ASSERT_RETURN(*count < PJMEDIA_MAX_SDP_ATTR, PJ_ETOOMANY);204 PJ_ASSERT_RETURN(*count <= PJMEDIA_MAX_SDP_ATTR, PJ_ETOOMANY); 205 205 206 206 attr_name.ptr = (char*)name; … … 229 229 230 230 PJ_ASSERT_RETURN(count && attr_array && attr, PJ_EINVAL); 231 PJ_ASSERT_RETURN(*count < PJMEDIA_MAX_SDP_ATTR, PJ_ETOOMANY);231 PJ_ASSERT_RETURN(*count <= PJMEDIA_MAX_SDP_ATTR, PJ_ETOOMANY); 232 232 233 233 for (i=0; i<*count; ) {
Note: See TracChangeset
for help on using the changeset viewer.