rv = 0;
}
- if (strncmp (line, "[GNUPG:] ", 9) == 0)
+ if (m_strncmp (line, "[GNUPG:] ", 9) == 0)
continue;
fputs (line, fpout);
fputc ('\n', fpout);
tempfp = m_tempfile(tempfname, sizeof(tempfname), NONULL(Tempdir), NULL);
if (tempfp == NULL) {
- mutt_perror (tempfname);
+ mutt_perror (_("Can't create temporary file"));
return;
}
int rv;
pgperr = m_tempfile(pgperrfile, sizeof(pgperrfile), NONULL(Tempdir), NULL);
- if (pgperr == NULL) {
+ if (!pgperr) {
mutt_perror (pgperrfile);
return NULL;
}
unlink (pgperrfile);
pgptmp = m_tempfile(pgptmpfile, sizeof(pgptmpfile), NONULL(Tempdir), NULL);
- if (!pgptmp == NULL) {
+ if (!pgptmp) {
mutt_perror (pgptmpfile);
m_fclose(&pgperr);
return NULL;
s.fpin = fpin;
*fpout = m_tempfile(tempfile, sizeof(tempfile), NONULL(Tempdir), NULL);
if (*fpout == NULL) {
- mutt_perror (tempfile);
+ mutt_perror (_("Can't create temporary file"));
return (-1);
}
unlink (tempfile);
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;
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. */
}
fpout = m_tempfile(tempfile, sizeof(tempfile), NONULL(Tempdir), NULL);
if (fpout == NULL) {
- mutt_perror (tempfile);
+ mutt_perror (_("Can't create temporary file"));
return (NULL);
}