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]
/
pgpmicalg.c
diff --git
a/pgpmicalg.c
b/pgpmicalg.c
index
0a45cc6
..
1b6ecc9
100644
(file)
--- a/
pgpmicalg.c
+++ b/
pgpmicalg.c
@@
-65,7
+65,7
@@
static void pgp_dearmor (FILE * in, FILE * out)
STATE state;
STATE state;
-
memset (&state, 0, sizeof (STATE)
);
+
p_clear(&state, 1
);
state.fpin = in;
state.fpout = out;
state.fpin = in;
state.fpout = out;
@@
-106,7
+106,7
@@
static void pgp_dearmor (FILE * in, FILE * out)
return;
}
return;
}
- if ((end = ftello (in) -
str_len
(line)) < start) {
+ if ((end = ftello (in) -
m_strlen
(line)) < start) {
debug_print (1, ("end < start???\n"));
return;
}
debug_print (1, ("end < start???\n"));
return;
}