This commit is contained in:
Branimir Karadžić
2017-02-06 16:05:58 -08:00
parent 8f9bafac31
commit 17e0713b7b
14 changed files with 49 additions and 52 deletions

View File

@@ -121,7 +121,7 @@ namespace bx
const size_t len = strnlen(_src, _num);
const size_t max = _dstSize-1;
const size_t num = (len < max ? len : max);
memcpy(_dst, _src, num);
memCopy(_dst, _src, num);
_dst[num] = '\0';
return num;