avatar: fix invalid UTF-8 iteration
This branch doesn't do what it looks like it is because g_utf8_next_char() will always return a pointer if q is valid (it just might dereference to \0 if it's at the end of the string). Instead, just allow dereference to the trailing \0 byte and check for a non-zero unichar.
parent
5395f1be
Please register or sign in to comment