1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 14:26:39 +02:00

Fixed some portability bugs (patch #5271)

This commit is contained in:
Sebastien Helleu
2006-10-12 17:16:14 +00:00
parent 481e6f8e7f
commit 9b91c91577
16 changed files with 38 additions and 28 deletions
+2 -2
View File
@@ -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"),