From 9b91c915774e2a9500cef3e694ca526d26d76cb0 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Thu, 12 Oct 2006 17:16:14 +0000 Subject: Fixed some portability bugs (patch #5271) --- src/plugins/plugins-config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/plugins-config.c') diff --git a/src/plugins/plugins-config.c b/src/plugins/plugins-config.c index 20688eecb..e609f4422 100644 --- a/src/plugins/plugins-config.c +++ b/src/plugins/plugins-config.c @@ -240,7 +240,7 @@ plugin_config_read () return; snprintf (filename, filename_length, "%s%s" WEECHAT_PLUGINS_CONFIG_NAME, weechat_home, DIR_SEPARATOR); - if ((file = fopen (filename, "rt")) == NULL) + if ((file = fopen (filename, "r")) == NULL) return; line_number = 0; @@ -347,7 +347,7 @@ plugin_config_write () snprintf (filename, filename_length, "%s%s" WEECHAT_PLUGINS_CONFIG_NAME, weechat_home, DIR_SEPARATOR); - if ((file = fopen (filename, "wt")) == NULL) + if ((file = fopen (filename, "w")) == NULL) { irc_display_prefix (NULL, NULL, PREFIX_ERROR); gui_printf (NULL, _("%s cannot create file \"%s\"\n"), -- cgit v1.2.3