- Timestamp:
- Dec 28, 2016 3:40:07 AM (8 years ago)
- Location:
- pjproject/branches/projects/uwp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/uwp
- Property svn:mergeinfo changed
/pjproject/trunk (added) merged: 5209,5212-5234,5237-5253,5255,5257-5292,5294-5297,5299-5332,5334-5394,5396-5438,5440-5469,5471-5496,5498-5510
- Property svn:mergeinfo changed
-
pjproject/branches/projects/uwp/pjlib/include/pj/string_i.h
r4537 r5513 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 pj_memcpy(dst->ptr, src->ptr, max); 123 if (max > 0) 124 pj_memcpy(dst->ptr, src->ptr, max); 122 125 dst->slen = max; 123 126 return dst; … … 127 130 pj_ssize_t max) 128 131 { 132 pj_assert(max > 0); 133 129 134 if (max <= src->slen) 130 135 max = max-1;
Note: See TracChangeset
for help on using the changeset viewer.