summaryrefslogtreecommitdiff
path: root/src/plugins/plugins-config.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2006-10-12 17:16:14 +0000
committerSebastien Helleu <flashcode@flashtux.org>2006-10-12 17:16:14 +0000
commit9b91c915774e2a9500cef3e694ca526d26d76cb0 (patch)
treea9349a205e561de7d3dfd6dede6ef40e9a81e201 /src/plugins/plugins-config.c
parent481e6f8e7f1c2cfdcbcc95e4b2c9dc3eaa243852 (diff)
downloadweechat-9b91c915774e2a9500cef3e694ca526d26d76cb0.zip
Fixed some portability bugs (patch #5271)
Diffstat (limited to 'src/plugins/plugins-config.c')
-rw-r--r--src/plugins/plugins-config.c4
1 files changed, 2 insertions, 2 deletions
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"),