Ignore:
Timestamp:
Oct 8, 2013 9:08:13 AM (11 years ago)
Author:
bennylp
Message:

Re #1703: fixing general bugs. First installment: correct handling of snprintf return value

File:
1 edited

Legend:

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

    r3553 r4613  
    111111                                   "Unknown pjsip-simple error %d", 
    112112                                   statcode); 
    113  
     113    if (errstr.slen < 1 || errstr.slen >= (pj_ssize_t)bufsize) 
     114        errstr.slen = bufsize - 1; 
    114115    return errstr; 
    115116} 
Note: See TracChangeset for help on using the changeset viewer.