Ignore:
Timestamp:
Jul 26, 2016 2:58:44 AM (8 years ago)
Author:
nanang
Message:

Misc (re #1945): Updated array limit checks and docs in pjsip_evsub_register_pkg() and pjsip_endpt_add_capability(). Thanks Alexei Gradinari for the patch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip-simple/evsub.c

    r5351 r5397  
    413413 
    414414    PJ_ASSERT_RETURN(pkg_mod && event_name, PJ_EINVAL); 
    415     PJ_ASSERT_RETURN(accept_cnt < PJ_ARRAY_SIZE(pkg->pkg_accept->values),  
     415     
     416    /* Make sure accept_cnt < PJ_ARRAY_SIZE(pkg->pkg_accept->values) */ 
     417    PJ_ASSERT_RETURN(accept_cnt <= PJSIP_GENERIC_ARRAY_MAX_COUNT,  
    416418                     PJ_ETOOMANY); 
    417419 
Note: See TracChangeset for help on using the changeset viewer.