Mercurial > pidgin.yaz
diff src/protocols/trepia/trepia.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 | 3e4ecbdf8d0a |
children | 54ac161a876e |
line wrap: on
line diff
--- a/src/protocols/trepia/trepia.c Fri Feb 11 03:51:26 2005 +0000 +++ b/src/protocols/trepia/trepia.c Fri Feb 11 05:10:40 2005 +0000 @@ -1154,10 +1154,10 @@ TrepiaSession *session = gc->proto_data; struct stat sb; - if (!stat(filename, &sb)) { + if (!g_stat(filename, &sb)) { FILE *fp; - if ((fp = fopen(filename, "rb")) != NULL) { + if ((fp = g_fopen(filename, "rb")) != NULL) { char *buf = g_malloc(sb.st_size + 1); char *temp; char *out_buf;