Changeset 2371:62965bc72607 for attach.c
Legend:
- Unmodified
- Added
- Removed
-
attach.c
r2282 r2371 303 303 if (*(q+1) == '*') 304 304 { 305 if ( mutt_strncasecmp (buf, p, q-p) == 0)305 if (ascii_strncasecmp (buf, p, q-p) == 0) 306 306 return (1); 307 307 } 308 308 else 309 309 { 310 if ( mutt_strcasecmp (buf, p) == 0)310 if (ascii_strcasecmp (buf, p) == 0) 311 311 return (1); 312 312 } … … 351 351 i = mutt_strlen (t->data) - 1; 352 352 if ((i > 0 && t->data[i-1] == '/' && t->data[i] == '*' && 353 mutt_strncasecmp (type, t->data, i) == 0) ||354 mutt_strcasecmp (type, t->data) == 0)353 ascii_strncasecmp (type, t->data, i) == 0) || 354 ascii_strcasecmp (type, t->data) == 0) 355 355 return 1; 356 356 } … … 941 941 } 942 942 943 if (! mutt_strcasecmp ("text/plain", a->subtype) ||944 ! mutt_strcasecmp ("application/postscript", a->subtype))943 if (!ascii_strcasecmp ("text/plain", a->subtype) || 944 !ascii_strcasecmp ("application/postscript", a->subtype)) 945 945 { 946 946 return (mutt_pipe_attachment (fp, a, NONULL(PrintCmd), NULL));
