Changeset 557:2c8523f9a1c8 for attach.c

Show
Ignore:
Timestamp:
1998-11-10 14:14:00 (10 years ago)
Author:
Thomas Roessler <roessler@…>
Branch:
HEAD
Message:

Introduce or rewrite mutt_{str*cmp,strlen} and use them all over the
place. If there are still segmentation faults due to missing
NONULLs over, they are gone now.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • attach.c

    r553 r557  
    257257  { 
    258258    /* On text, default to editor */ 
    259     mutt_edit_file ((!Editor || strcmp ("builtin", Editor) == 0) ?  
     259    mutt_edit_file ((!Editor || mutt_strcmp ("builtin", Editor) == 0) ?  
    260260                    NONULL(Visual) : NONULL(Editor), newfile); 
    261261  } 
     
    285285  while (t) 
    286286  { 
    287     i = strlen (t->data) - 1; 
     287    i = mutt_strlen (t->data) - 1; 
    288288    if ((i > 0 && t->data[i-1] == '/' && t->data[i] == '*' &&  
    289           strncasecmp (type, t->data, i) == 0) || 
    290           strcasecmp (type, t->data) == 0) 
     289          mutt_strncasecmp (type, t->data, i) == 0) || 
     290          mutt_strcasecmp (type, t->data) == 0) 
    291291      return 1; 
    292292    t = t->next; 
     
    360360                                 tempfile, sizeof (tempfile))) 
    361361    { 
    362       if (fp == NULL && strcmp(tempfile, a->filename)) 
     362      if (fp == NULL && mutt_strcmp(tempfile, a->filename)) 
    363363      { 
    364364        /* send case: the file is already there */ 
     
    860860  } 
    861861 
    862   if (!strcasecmp ("text/plain", a->subtype) || 
    863       !strcasecmp ("application/postscript", a->subtype)) 
     862  if (!mutt_strcasecmp ("text/plain", a->subtype) || 
     863      !mutt_strcasecmp ("application/postscript", a->subtype)) 
    864864  { 
    865865    return (mutt_pipe_attachment (fp, a, NONULL(PrintCmd), NULL));