From 9399b0ea5279871262608d66f00b574be4a81268 Mon Sep 17 00:00:00 2001 From: Denis Krjuchkov Date: Sat, 2 Feb 2013 20:19:25 +0600 Subject: ConfigFile.cxx: use FOpenMode --- src/ConfigFile.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ConfigFile.cxx') diff --git a/src/ConfigFile.cxx b/src/ConfigFile.cxx index 695e7803e..e94f3f238 100644 --- a/src/ConfigFile.cxx +++ b/src/ConfigFile.cxx @@ -271,7 +271,7 @@ ReadConfigFile(ConfigData &config_data, const Path &path, GError **error_r) g_debug("loading file %s", path_utf8.c_str()); - FILE *fp = FOpen(path, "r"); + FILE *fp = FOpen(path, FOpenMode::ReadText); if (fp == nullptr) { g_set_error(error_r, config_quark(), errno, "Failed to open %s: %s", -- cgit v1.2.3