Changeset 5468 for pjproject/trunk/pjlib/include/pj/string_i.h
- Timestamp:
- Oct 24, 2016 3:22:46 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/include/pj/string_i.h
r5229 r5468 121 121 pj_assert(max >= 0); 122 122 if (max > src->slen) max = src->slen; 123 pj_memcpy(dst->ptr, src->ptr, max); 123 if (max > 0) 124 pj_memcpy(dst->ptr, src->ptr, max); 124 125 dst->slen = max; 125 126 return dst;
Note: See TracChangeset
for help on using the changeset viewer.