projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
use safer p_clear when possible.
[apps/madmutt.git]
/
lib.c
diff --git
a/lib.c
b/lib.c
index
7c704b9
..
3212015
100644
(file)
--- a/
lib.c
+++ b/
lib.c
@@
-148,7
+148,7
@@
void mutt_unlink (const char *s)
if ((f = fdopen (fd, "r+"))) {
unlink (s);
-
memset (buf, 0, sizeof
(buf));
+
p_clear(buf, sizeof
(buf));
while (sb.st_size > 0) {
fwrite (buf, 1, MIN (sizeof (buf), sb.st_size), f);
sb.st_size -= MIN (sizeof (buf), sb.st_size);