simplify charset and things in the sockets API.
[apps/madmutt.git] / lib-mime / rfc3676.c
index 51b6450..b93a766 100644 (file)
@@ -220,15 +220,15 @@ int rfc3676_handler (BODY * a, STATE * s) {
 void rfc3676_space_stuff (HEADER* hdr) {
   FILE* in = NULL, *out = NULL;
   char buf[LONG_STRING];
-  char tmpfile[_POSIX_PATH_MAX];
+  char tmpf[_POSIX_PATH_MAX];
 
   if (!hdr || !hdr->content || !hdr->content->filename)
     return;
 
   if ((in = safe_fopen (hdr->content->filename, "r")) == NULL)
     return;
-  mutt_mktemp (tmpfile);
-  if ((out = safe_fopen (tmpfile, "w+")) == NULL) {
+  mutt_mktemp (tmpf);
+  if ((out = safe_fopen (tmpf, "w+")) == NULL) {
     fclose (in);
     return;
   }
@@ -241,7 +241,7 @@ void rfc3676_space_stuff (HEADER* hdr) {
   }
   fclose (in);
   fclose (out);
-  mutt_set_mtime (hdr->content->filename, tmpfile);
+  mutt_set_mtime (hdr->content->filename, tmpf);
   unlink (hdr->content->filename);
-  m_strreplace(&hdr->content->filename, tmpfile);
+  m_strreplace(&hdr->content->filename, tmpf);
 }