summary refs log tree commit diff stats
path: root/src/common
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2015-02-28 06:47:40 -0500
committerTingPing <tingping@tingping.se>2015-02-28 06:47:40 -0500
commitd78db5070a20c86c56bdb8552da9b242a641f3ee (patch)
tree9ce154534e208dfc8c140ad4b5b9e3af5cfc0b07 /src/common
parenta5584c6b575b6239d048b5adb260068a6783dbad (diff)
Consistently use g_fopen()
It handles the correct encoding on win32
Diffstat (limited to 'src/common')
-rw-r--r--src/common/cfgfiles.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/cfgfiles.c b/src/common/cfgfiles.c
index d0007b93..9adaa5d6 100644
--- a/src/common/cfgfiles.c
+++ b/src/common/cfgfiles.c
@@ -1347,7 +1347,7 @@ hexchat_fopen_file (const char *file, const char *mode, int xof_flags)
 	FILE *fh;
 
 	if (xof_flags & XOF_FULLPATH)
-		return fopen (file, mode);
+		return g_fopen (file, mode);
 
 	buf = g_build_filename (get_xdir (), file, NULL);
 	fh = g_fopen (buf, mode);