ALIAS *t = Aliases;
for (; t; t = t->next)
- if (!safe_strcasecmp (s, t->name))
+ if (!str_casecmp (s, t->name))
return (t->addr);
return (NULL); /* no such alias */
}
if (t) {
i = 0;
for (u = *expn; u; u = u->next) {
- if (safe_strcmp (a->mailbox, u->data) == 0) { /* alias already found */
+ if (str_cmp (a->mailbox, u->data) == 0) { /* alias already found */
debug_print(1, ("loop in alias found for '%s'\n", a->mailbox));
i = 1;
break;
if (!i) {
u = safe_malloc (sizeof (LIST));
- u->data = safe_strdup (a->mailbox);
+ u->data = str_dup (a->mailbox);
u->next = *expn;
*expn = u;
w = rfc822_cpy_adr (t);
mutt_gecos_name (namebuf, sizeof (namebuf), pw);
str_replace (&a->personal, namebuf);
-
-#ifdef EXACT_ADDRESS
- FREE (&a->val);
-#endif
}
}
}
new = safe_calloc (1, sizeof (ALIAS));
new->self = new;
- new->name = safe_strdup (buf);
+ new->name = str_dup (buf);
mutt_addrlist_to_local (adr);
mutt_free_alias (&new);
return;
}
- new->addr->personal = safe_strdup (buf);
+ new->addr->personal = str_dup (buf);
buf[0] = 0;
rfc822_write_address (buf, sizeof (buf), new->addr, 1);
if (a->name && strstr (a->name, s) == a->name) {
if (!bestname[0]) /* init */
strfcpy (bestname, a->name,
- min (safe_strlen (a->name) + 1, sizeof (bestname)));
+ min (str_len (a->name) + 1, sizeof (bestname)));
else {
for (i = 0; a->name[i] && a->name[i] == bestname[i]; i++);
bestname[i] = 0;
}
if (bestname[0] != 0) {
- if (safe_strcmp (bestname, s) != 0) {
+ if (str_cmp (bestname, s) != 0) {
/* we are adding something to the completion */
- strfcpy (s, bestname, safe_strlen (bestname) + 1);
+ strfcpy (s, bestname, str_len (bestname) + 1);
return 1;
}