diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1998-11-10 22:14:00 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1998-11-10 22:14:00 +0000 |
commit | a3f726e35f1e7d918061074a85ebe7a2c7c300a5 (patch) | |
tree | d9ab2a281be2a13fbb1ec8682d4e5c7ff0502cde /query.c | |
parent | 912c6b0df82fe3a2745d68131db9300222226a73 (diff) |
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.
Diffstat (limited to 'query.c')
-rw-r--r-- | query.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -108,7 +108,7 @@ static QUERY *run_query (char *s, int quiet) p = strtok(buf, "\t\n"); if (p) { - l = strlen (p); + l = mutt_strlen (p); if (l > SecondColumn) SecondColumn = l; @@ -116,7 +116,7 @@ static QUERY *run_query (char *s, int quiet) p = strtok(NULL, "\t\n"); if (p) { - l = strlen (p); + l = mutt_strlen (p); if (l > FirstColumn) FirstColumn = l; cur->name = safe_strdup (p); @@ -432,14 +432,14 @@ static void query_menu (char *buf, size_t buflen, QUERY *results, int retbuf) { tagged = 1; rfc822_write_address (buf, buflen, result_to_addr(QueryTable[i].data)); - curpos = strlen (buf); + curpos = mutt_strlen (buf); } else if (curpos + 2 < buflen) { strcat (buf, ", "); rfc822_write_address ((char *) buf + curpos + 1, buflen - curpos - 1, result_to_addr(QueryTable[i].data)); - curpos = strlen (buf); + curpos = mutt_strlen (buf); } } } |