Skip to content
  • Christian Hergert's avatar
    avatar: fix invalid UTF-8 iteration · d82c0318
    Christian Hergert authored and Alice Mikhaylenko's avatar Alice Mikhaylenko committed
    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.
    d82c0318