X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=query.c;h=1f164da9838b86391ff6e99252ea686f4df33d39;hp=f7a7894facee1a661adb955e94bbf13386a26bfc;hb=7f7a0be369840b290248e5b0302beb447fa1b3cd;hpb=308c7080ccca40d4865d8810f5528331d9ed61ff diff --git a/query.c b/query.c index f7a7894..1f164da 100644 --- a/query.c +++ b/query.c @@ -12,6 +12,7 @@ #endif #include +#include #include #include "mutt.h" @@ -20,7 +21,6 @@ #include "mapping.h" #include "sort.h" -#include "lib/str.h" #include "lib/debug.h" #include @@ -63,7 +63,7 @@ static ADDRESS *result_to_addr (QUERY * r) tmp = rfc822_cpy_adr (r->addr); if (!tmp->next && !tmp->personal) - tmp->personal = str_dup (r->name); + tmp->personal = m_strdup(r->name); mutt_addrlist_to_idna (tmp, NULL); return tmp; @@ -119,10 +119,10 @@ static QUERY *run_query (char *s, int quiet) l = mutt_strwidth (p); if (l > FirstColumn) FirstColumn = l; - cur->name = str_dup (p); + cur->name = m_strdup(p); p = strtok (NULL, "\t\n"); if (p) { - cur->other = str_dup (p); + cur->other = m_strdup(p); } } } @@ -186,7 +186,7 @@ static void query_entry (char *s, size_t slen, MUTTMENU * m, int num) mutt_format_string (buf2, sizeof (buf2), FirstColumn + 2, FirstColumn + 2, 0, ' ', table[num].data->name, - str_len (table[num].data->name), 0); + m_strlen(table[num].data->name), 0); snprintf (s, slen, " %c %3d %s %-*.*s %s", table[num].tagged ? '*' : ' ', @@ -443,7 +443,7 @@ static void query_menu (char *buf, size_t buflen, QUERY * results, int retbuf) mutt_addrlist_to_local (tmpa); tagged = 1; rfc822_write_address (buf, buflen, tmpa, 0); - curpos = str_len (buf); + curpos = m_strlen(buf); rfc822_free_address (&tmpa); } else if (curpos + 2 < buflen) { @@ -453,7 +453,7 @@ static void query_menu (char *buf, size_t buflen, QUERY * results, int retbuf) strcat (buf, ", "); /* __STRCAT_CHECKED__ */ rfc822_write_address ((char *) buf + curpos + 1, buflen - curpos - 1, tmpa, 0); - curpos = str_len (buf); + curpos = m_strlen(buf); rfc822_free_address (&tmpa); } }