projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use m_strncmp instead of strncmp
[apps/madmutt.git]
/
lib-crypt
/
pgp.c
diff --git
a/lib-crypt/pgp.c
b/lib-crypt/pgp.c
index
d0104a7
..
e27fba7
100644
(file)
--- a/
lib-crypt/pgp.c
+++ b/
lib-crypt/pgp.c
@@
-130,7
+130,7
@@
static int pgp_copy_checksig (FILE * fpin, FILE * fpout)
rv = 0;
}
rv = 0;
}
- if (strncmp (line, "[GNUPG:] ", 9) == 0)
+ if (
m_
strncmp (line, "[GNUPG:] ", 9) == 0)
continue;
fputs (line, fpout);
fputc ('\n', fpout);
continue;
fputs (line, fpout);
fputc ('\n', fpout);
@@
-974,7
+974,7
@@
BODY *pgp_sign_message (BODY * a)
static short is_numerical_keyid (const char *s)
{
/* or should we require the "0x"? */
static short is_numerical_keyid (const char *s)
{
/* or should we require the "0x"? */
- if (strncmp (s, "0x", 2) == 0)
+ if (
m_
strncmp (s, "0x", 2) == 0)
s += 2;
if (m_strlen(s) % 8)
return 0;
s += 2;
if (m_strlen(s) % 8)
return 0;
@@
-1040,7
+1040,7
@@
char *pgp_findKeys (address_t * to, address_t * cc, address_t * bcc)
p->mailbox);
if ((r = mutt_yesorno (buf, M_YES)) == M_YES) {
if (is_numerical_keyid (keyID)) {
p->mailbox);
if ((r = mutt_yesorno (buf, M_YES)) == M_YES) {
if (is_numerical_keyid (keyID)) {
- if (strncmp (keyID, "0x", 2) == 0)
+ if (
m_
strncmp (keyID, "0x", 2) == 0)
keyID += 2;
goto bypass_selection; /* you don't see this. */
}
keyID += 2;
goto bypass_selection; /* you don't see this. */
}