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]
/
muttlib.c
diff --git
a/muttlib.c
b/muttlib.c
index
9be7e75
..
d57433e
100644
(file)
--- a/
muttlib.c
+++ b/
muttlib.c
@@
-454,7
+454,7
@@
char *mutt_gecos_name (char *dest, size_t destlen, struct passwd *pw)
if (!pw || !pw->pw_gecos)
return NULL;
if (!pw || !pw->pw_gecos)
return NULL;
-
memset (dest, 0
, destlen);
+
p_clear(dest
, destlen);
if (GecosMask.rx) {
if (regexec (GecosMask.rx, pw->pw_gecos, 1, pat_match, 0) == 0)
if (GecosMask.rx) {
if (regexec (GecosMask.rx, pw->pw_gecos, 1, pat_match, 0) == 0)