Wipe debug code.

This commit is contained in:
Alcaro 2016-02-24 23:28:57 +01:00
parent 9b35965ce1
commit 353795b25e

View File

@ -608,11 +608,7 @@ size_t utf8cpy(char *d, size_t d_len, const char *s, size_t chars)
if (sb - sb_org > d_len-1 /* NUL */) if (sb - sb_org > d_len-1 /* NUL */)
{ {
sb = sb_org + d_len-1; sb = sb_org + d_len-1;
//if ((*sb&0xC0) == 0x80) while ((*sb&0xC0) == 0x80) sb--;
{
while ((*sb&0xC0) == 0x80) sb--;
//sb--;
}
} }
memcpy(d, sb_org, sb-sb_org); memcpy(d, sb_org, sb-sb_org);