libi3: validate UTF8 strings

Will validate container / window titles.

Fixes #3156.
This commit is contained in:
Orestis Floros
2018-09-09 15:32:54 +03:00
parent a3dcee35f3
commit 6a1f653508
4 changed files with 51 additions and 20 deletions

View File

@ -200,7 +200,7 @@ i3String *i3string_from_markup(const char *from_markup);
* Returns the newly-allocated i3String.
*
*/
i3String *i3string_from_utf8_with_length(const char *from_utf8, size_t num_bytes);
i3String *i3string_from_utf8_with_length(const char *from_utf8, ssize_t num_bytes);
/**
* Build an i3String from an UTF-8 encoded string in Pango markup with fixed