Mercurial > pidgin.yaz
diff src/protocols/yahoo/yahoo_picture.c @ 10589:0f7452b1f777
[gaim-migrate @ 11994]
Use GLib 2.6's gstdio functions. This should fix gaim not liking non-ascii filenames in win32.
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Fri, 11 Feb 2005 05:10:40 +0000 |
parents | 6c6772d3ea31 |
children | 255225f7639e |
line wrap: on
line diff
--- a/src/protocols/yahoo/yahoo_picture.c Fri Feb 11 03:51:26 2005 +0000 +++ b/src/protocols/yahoo/yahoo_picture.c Fri Feb 11 05:10:40 2005 +0000 @@ -466,8 +466,8 @@ if (yd->logged_in) yahoo_send_picture_update(gc, 0); /* TODO: check if we're connected and tell everyone we ain't not one no more */ - } else if (!stat(iconfile, &st)) { - file = fopen(iconfile, "rb"); + } else if (!g_stat(iconfile, &st)) { + file = g_fopen(iconfile, "rb"); if (file) { GString *s = g_string_sized_new(st.st_size); size_t len;