X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=lib-crypt%2Fpgpmicalg.c;h=0edbfeaa4c6ce5619cddb63907e1c64719a05420;hb=8f75834aeadb902879602a82a259f4d3bf9c569c;hp=4e5e836838abdd07f4d2433aefb1f449a60312a3;hpb=6ebff74ad242d4c56fb7762965b19cee14fd2daa;p=apps%2Fmadmutt.git diff --git a/lib-crypt/pgpmicalg.c b/lib-crypt/pgpmicalg.c index 4e5e836..0edbfea 100644 --- a/lib-crypt/pgpmicalg.c +++ b/lib-crypt/pgpmicalg.c @@ -65,7 +65,7 @@ static void pgp_dearmor (FILE * in, FILE * out) /* find the beginning of ASCII armor */ while ((r = fgets (line, sizeof (line), in)) != NULL) { - if (!strncmp (line, "-----BEGIN", 10)) + if (!m_strncmp (line, "-----BEGIN", 10)) break; } if (r == NULL) { @@ -89,7 +89,7 @@ static void pgp_dearmor (FILE * in, FILE * out) /* find the checksum */ while ((r = fgets (line, sizeof (line), in)) != NULL) { - if (*line == '=' || !strncmp (line, "-----END", 8)) + if (*line == '=' || !m_strncmp (line, "-----END", 8)) break; } if (r == NULL) { @@ -137,7 +137,7 @@ static short pgp_find_hash (const char *fname) short rv = -1; - out = m_tempfile (tempfile, sizeof(tempfile), NONULL(Tempdir), NULL); + out = m_tempfile (tempfile, sizeof(tempfile), NONULL(MCore.tmpdir), NULL); if (!out) { mutt_perror (_("Can't create temporary file")); goto bye;