X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=attach.c;h=c87f9cf30579b236b33cbe9bc6a4d313b7245e2f;hp=a2809ceacfa290b1903754d42c2cd0fecc0190fa;hb=a8477ebaa09990b3688164cbe5cf661c4189541d;hpb=e01486aabea6f0af36933158bd58b9ab03b30add diff --git a/attach.c b/attach.c index a2809ce..c87f9cf 100644 --- a/attach.c +++ b/attach.c @@ -272,7 +272,7 @@ static int is_mmnoask (const char *buf) int lng; if ((p = getenv ("MM_NOASK")) != NULL && *p) { - if (mutt_strcmp (p, "1") == 0) + if (str_cmp (p, "1") == 0) return (1); strfcpy (tmp, p, sizeof (tmp)); @@ -290,8 +290,8 @@ static int is_mmnoask (const char *buf) } } else { - lng = mutt_strlen (p); - if (buf[lng] == '/' && safe_strncasecmp (buf, p, lng) == 0) + lng = str_len (p); + if (buf[lng] == '/' && str_ncasecmp (buf, p, lng) == 0) return (1); } @@ -308,7 +308,7 @@ void mutt_check_lookup_list (BODY * b, char *type, int len) int i; for (; t; t = t->next) { - i = mutt_strlen (t->data) - 1; + i = str_len (t->data) - 1; if ((i > 0 && t->data[i - 1] == '/' && t->data[i] == '*' && ascii_strncasecmp (type, t->data, i) == 0) || ascii_strcasecmp (type, t->data) == 0) { @@ -359,7 +359,7 @@ int mutt_is_autoview (BODY * b, const char *type) } for (; t; t = t->next) { - i = mutt_strlen (t->data) - 1; + i = str_len (t->data) - 1; if ((i > 0 && t->data[i - 1] == '/' && t->data[i] == '*' && ascii_strncasecmp (type, t->data, i) == 0) || ascii_strcasecmp (type, t->data) == 0) @@ -420,7 +420,7 @@ int mutt_view_attachment (FILE * fp, BODY * a, int flag, HEADER * hdr, strfcpy (command, entry->command, sizeof (command)); if (fp) { - fname = safe_strdup (a->filename); + fname = str_dup (a->filename); mutt_sanitize_filename (fname, 1); } else @@ -428,7 +428,7 @@ int mutt_view_attachment (FILE * fp, BODY * a, int flag, HEADER * hdr, if (rfc1524_expand_filename (entry->nametemplate, fname, tempfile, sizeof (tempfile))) { - if (fp == NULL && mutt_strcmp (tempfile, a->filename)) { + if (fp == NULL && str_cmp (tempfile, a->filename)) { /* send case: the file is already there */ if (safe_symlink (a->filename, tempfile) == -1) { if (mutt_yesorno (_("Can't match nametemplate, continue?"), M_YES)