Mercurial > pidgin
diff plugins/filectl.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 | 73d3a64d5574 |
children | 55af3fa46329 |
line wrap: on
line diff
--- a/plugins/filectl.c Fri Feb 11 03:51:26 2005 +0000 +++ b/plugins/filectl.c Fri Feb 11 05:10:40 2005 +0000 @@ -47,7 +47,7 @@ sprintf(filename, "%s" G_DIR_SEPARATOR_S "control", gaim_user_dir()); - file = fopen(filename, "r+"); + file = g_fopen(filename, "r+"); while (fgets(buffer, sizeof(buffer), file)) { /* Read the next command */ @@ -131,7 +131,7 @@ fclose(file); - if (stat (filename, &finfo) != 0) + if (g_stat(filename, &finfo) != 0) return; mtime = finfo.st_mtime; } @@ -148,7 +148,7 @@ sprintf(filename, "%s" G_DIR_SEPARATOR_S "control", gaim_user_dir()); - if ((stat(filename, &finfo) == 0) && (finfo.st_size > 0)) + if ((g_stat(filename, &finfo) == 0) && (finfo.st_size > 0)) run_commands(); } @@ -164,7 +164,7 @@ sprintf(filename, "%s" G_DIR_SEPARATOR_S "control", gaim_user_dir()); - if ((stat(filename, &finfo) == 0) && (finfo.st_size > 0)) + if ((g_stat(filename, &finfo) == 0) && (finfo.st_size > 0)) { if (mtime != finfo.st_mtime) { gaim_debug_info("filectl", "control changed, checking\n");