Changeset 5170 for pjproject/trunk/pjlib/src/pj/errno.c
- Timestamp:
- Aug 25, 2015 8:45:46 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/errno.c
r4761 r5170 99 99 for (i=0; i<sizeof(err_str)/sizeof(err_str[0]); ++i) { 100 100 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; 106 106 } 107 107 }
Note: See TracChangeset
for help on using the changeset viewer.