Ticket #1960: src/mcconfig/common.c: fixed missing printf format in mc_config_new_or_override_file()

This commit is contained in:
Enrico Weigelt, metux IT service 2010-01-14 01:52:29 +01:00
parent 581763fdd8
commit 7cb7acb14c

View File

@ -67,7 +67,7 @@ mc_config_new_or_override_file (mc_config_t * mc_config, const gchar * ini_path,
fd = mc_open (ini_path, O_WRONLY | O_TRUNC | O_SYNC, 0);
if (fd == -1) {
g_propagate_error (error, g_error_new (mc_main_error_quark() ,0, unix_error_string (errno)));
g_propagate_error (error, g_error_new (mc_main_error_quark() ,0, "%s", unix_error_string (errno)));
return FALSE;
}
@ -79,7 +79,7 @@ mc_config_new_or_override_file (mc_config_t * mc_config, const gchar * ini_path,
if (cur_written == -1) {
mc_util_restore_from_backup_if_possible (ini_path, "~");
g_propagate_error (error, g_error_new (mc_main_error_quark() ,0, unix_error_string (errno)));
g_propagate_error (error, g_error_new (mc_main_error_quark() ,0, "%s", unix_error_string (errno)));
return FALSE;
}