bytes -= (offset - last_pos); /* don't rely on m_strlen(buf) */
last_pos = offset;
- if (str_ncmp ("-----BEGIN PGP ", buf, 15) == 0) {
+ if (m_strncmp("-----BEGIN PGP ", buf, 15) == 0) {
clearsign = 0;
start_pos = last_pos;
}
while (fgets (buf, sizeof (buf), tfp)) {
- if (str_ncmp ("-----BEGIN PGP ", buf, 15) == 0) {
+ if (m_strncmp("-----BEGIN PGP ", buf, 15) == 0) {
if (m_strcmp("MESSAGE-----\n", buf + 15) == 0)
enc = 1;
else if (m_strcmp("SIGNED MESSAGE-----\n", buf + 15) == 0)