X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=commands.c;h=29e5d4c8c86bcf2c45c08f5dc2f1821fcade5998;hp=5a8862eab519febe038d3c4133985eecc6ec9e86;hb=1d7238dc43311c4545883dc1151bf5b142d88c0b;hpb=ce2c6b74b93777c66708ef0cfb7cc14ff1bf6a94 diff --git a/commands.c b/commands.c index 5a8862e..29e5d4c 100644 --- a/commands.c +++ b/commands.c @@ -873,7 +873,7 @@ int mutt_update_list_file (char *filename, char *section, char *key, char *line) return (-1); } dprint (1, (debugfile, "Opening %s\n", filename)); - if (!(ofp = fopen (filename, "w"))) + if (!(ofp = safe_fopen (filename, "w"))) { fclose (ifp); mutt_perror _("Unable to open new file for writing");