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/pjlib/src/pj/lock.c

    r4412 r4613  
    684684 
    685685        len = pj_ansi_snprintf(start, max_len, "%s:%d ", ref->file, ref->line); 
    686         if (len < 1 || len > max_len) { 
     686        if (len < 1 || len >= max_len) { 
    687687            len = strlen(ref->file); 
    688688            if (len > max_len - 1) 
Note: See TracChangeset for help on using the changeset viewer.