add last backwards-compatible version
This commit is contained in:
@@ -60,7 +60,7 @@ unsigned strcpy_utf8_truncate(const char * src,char * out,unsigned maxbytes)
|
||||
maxbytes--;//for null
|
||||
while(!check_end_of_string(src) && maxbytes>0)
|
||||
{
|
||||
unsigned delta = (unsigned)utf8_char_len(src);
|
||||
t_size delta = utf8_char_len(src);
|
||||
if (delta>maxbytes || delta==0) break;
|
||||
maxbytes -= delta;
|
||||
do
|
||||
|
||||
Reference in New Issue
Block a user