projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fclose -> m_fclose
[apps/madmutt.git]
/
lib-lib
/
file.c
diff --git
a/lib-lib/file.c
b/lib-lib/file.c
index
56bcf1f
..
584fcdb
100644
(file)
--- a/
lib-lib/file.c
+++ b/
lib-lib/file.c
@@
-200,7
+200,7
@@
void mutt_unlink(const char *s)
fwrite(buf, 1, MIN(ssizeof(buf), sb.st_size), f);
sb.st_size -= MIN(ssizeof(buf), sb.st_size);
}
fwrite(buf, 1, MIN(ssizeof(buf), sb.st_size), f);
sb.st_size -= MIN(ssizeof(buf), sb.st_size);
}
-
fclose (
f);
+
m_fclose(&
f);
}
}
}
}
}
}
@@
-258,13
+258,13
@@
int mutt_rename_file(char *oldfile, char *newfile)
nfp = safe_fopen(newfile, "w");
if (!nfp) {
nfp = safe_fopen(newfile, "w");
if (!nfp) {
-
fclose (
ofp);
+
m_fclose(&
ofp);
return 3;
}
mutt_copy_stream(ofp, nfp);
return 3;
}
mutt_copy_stream(ofp, nfp);
-
fclose(
nfp);
-
fclose(
ofp);
+
m_fclose(&
nfp);
+
m_fclose(&
ofp);
mutt_unlink(oldfile);
return 0;
}
mutt_unlink(oldfile);
return 0;
}