Changeset 5229 for pjproject/trunk
- Timestamp:
- Dec 31, 2015 5:06:03 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/include/pj/string_i.h
r4537 r5229 19 19 */ 20 20 21 #include <pj/assert.h> 21 22 #include <pj/pool.h> 22 23 … … 118 119 pj_ssize_t max) 119 120 { 121 pj_assert(max >= 0); 120 122 if (max > src->slen) max = src->slen; 121 123 pj_memcpy(dst->ptr, src->ptr, max); … … 127 129 pj_ssize_t max) 128 130 { 131 pj_assert(max > 0); 132 129 133 if (max <= src->slen) 130 134 max = max-1;
Note: See TracChangeset
for help on using the changeset viewer.