Skip to content
Commit d82c0318 authored by Christian Hergert's avatar Christian Hergert Committed by Alexander Mikhaylenko
Browse files

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
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment