Mercurial > pidgin.yaz
diff libpurple/protocols/yahoo/util.c @ 19197:47942d19f301
Use -1 as length with g_convert() functions instead of strlen()
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Sun, 12 Aug 2007 02:11:05 +0000 |
parents | 8e61e7be988b |
children | 44b4e8bd759b 411b5a604a17 |
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/util.c Sun Aug 12 01:52:10 2007 +0000 +++ b/libpurple/protocols/yahoo/util.c Sun Aug 12 02:11:05 2007 +0000 @@ -61,7 +61,7 @@ else to_codeset = purple_account_get_string(purple_connection_get_account(gc), "local_charset", "ISO-8859-1"); - ret = g_convert_with_fallback(str, strlen(str), to_codeset, "UTF-8", "?", NULL, NULL, NULL); + ret = g_convert_with_fallback(str, -1, to_codeset, "UTF-8", "?", NULL, NULL, NULL); if (ret) return ret; else @@ -92,7 +92,7 @@ else from_codeset = purple_account_get_string(purple_connection_get_account(gc), "local_charset", "ISO-8859-1"); - ret = g_convert_with_fallback(str, strlen(str), "UTF-8", from_codeset, NULL, NULL, NULL, NULL); + ret = g_convert_with_fallback(str, -1, "UTF-8", from_codeset, NULL, NULL, NULL, NULL); if (ret) return ret;