Skip to content
  • Benjamin Otte's avatar
    Properly nul-terminate return values from g_convert() · 4288ad76
    Benjamin Otte authored
    The patch ensures that multibyte character sets are properly
    nul-terminated. This is an issue because the documentation claims to
    return a "nul-terminated" string and users of the API assume that means
    a proper nul-termination in the resulting character set.
    
    I looked at Pidgin and GStreamer code and found at least 3 cases where
    this was happening.
    
    This patch also reverts the documentation change from
    5a633f82 as that is now no longer
    necessary.
    4288ad76