Ignore:
Timestamp:
Aug 25, 2015 8:45:46 AM (9 years ago)
Author:
nanang
Message:

Re #1881: Fixed compile warnings on VS2015 about declaration hides previous declaration.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/errno.c

    r4761 r5170  
    9999    for (i=0; i<sizeof(err_str)/sizeof(err_str[0]); ++i) { 
    100100        if (err_str[i].code == code) { 
    101             pj_size_t len = strlen(err_str[i].msg); 
    102             if (len >= size) len = size-1; 
    103             pj_memcpy(buf, err_str[i].msg, len); 
    104             buf[len] = '\0'; 
    105             return (int)len; 
     101            pj_size_t len2 = pj_ansi_strlen(err_str[i].msg); 
     102            if (len2 >= size) len2 = size-1; 
     103            pj_memcpy(buf, err_str[i].msg, len2); 
     104            buf[len2] = '\0'; 
     105            return (int)len2; 
    106106        } 
    107107    } 
Note: See TracChangeset for help on using the changeset viewer.