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/pjmedia/src/pjmedia-videodev/errno.c

    r3715 r4613  
    112112                                   "Unknown pjmedia-videodev error %d", 
    113113                                   statcode); 
    114  
     114    if (errstr.slen < 1 || errstr.slen >= (pj_ssize_t)bufsize) 
     115        errstr.slen = bufsize - 1; 
    115116    return errstr; 
    116117} 
Note: See TracChangeset for help on using the changeset viewer.