add last backwards-compatible version

This commit is contained in:
2021-12-14 00:33:46 -07:00
parent 68b10d413b
commit b0dd3f07f3
335 changed files with 4746 additions and 19627 deletions

View File

@@ -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