1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-10 11:43:13 +02:00

core: return number of bytes for UTF-8 char in function utf8_int_string

This commit is contained in:
Sébastien Helleu
2022-12-17 20:25:07 +01:00
parent 6aedddd351
commit eb6cc0bc2a
4 changed files with 27 additions and 12 deletions
+1 -2
View File
@@ -1073,10 +1073,9 @@ string_convert_escaped_chars (const char *string)
{
value = (value * 16) + HEX2DEC(ptr_string[i + 1]);
}
utf8_int_string (value, utf_char);
length = utf8_int_string (value, utf_char);
if (utf_char[0])
{
length = strlen (utf_char);
memcpy (output + pos_output, utf_char, length);
pos_output += length;
}