/*
- * Copyright (C) 1999-2000 Thomas Roessler <roessler@does-not-exist.org>
+ * Copyright (C) 1999-2002 Thomas Roessler <roessler@does-not-exist.org>
*
* This program is free software; you can redistribute it
* and/or modify it under the terms of the GNU General Public
struct stat sb;
time_t mtime = 0;
- mutt_mktemp (tmp);
+ mutt_mktemp (tmp, sizeof (tmp));
omagic = DefaultMagic;
DefaultMagic = M_MBOX;
mx_close_mailbox (&tmpctx, NULL);
bail:
- if (fp) fclose (fp);
+ if (fp) safe_fclose (&fp);
if (rc >= 0)
unlink (tmp);