summaryrefslogtreecommitdiffstats
path: root/curs_lib.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-11-10 22:14:00 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-11-10 22:14:00 +0000
commita3f726e35f1e7d918061074a85ebe7a2c7c300a5 (patch)
treed9ab2a281be2a13fbb1ec8682d4e5c7ff0502cde /curs_lib.c
parent912c6b0df82fe3a2745d68131db9300222226a73 (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 'curs_lib.c')
-rw-r--r--curs_lib.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/curs_lib.c b/curs_lib.c
index 817a6dd8..1787c09e 100644
--- a/curs_lib.c
+++ b/curs_lib.c
@@ -87,7 +87,7 @@ event_t mutt_getch (void)
int mutt_get_field (/* const */ char *field, char *buf, size_t buflen, int complete)
{
int ret;
- int len = strlen (field); /* in case field==buffer */
+ int len = mutt_strlen (field); /* in case field==buffer */
do
{
@@ -107,7 +107,7 @@ int mutt_get_password (char *msg, char *buf, size_t buflen)
CLEARLINE (LINES-1);
addstr (msg);
- rc = mutt_enter_string ((unsigned char *) buf, buflen, LINES - 1, strlen (msg), M_PASS);
+ rc = mutt_enter_string ((unsigned char *) buf, buflen, LINES - 1, mutt_strlen (msg), M_PASS);
CLEARLINE (LINES-1);
return (rc);
}
@@ -296,7 +296,7 @@ int mutt_do_pager (const char *banner,
{
int rc;
- if (!Pager || strcmp (Pager, "builtin") == 0)
+ if (!Pager || mutt_strcmp (Pager, "builtin") == 0)
rc = mutt_pager (banner, tempfile, do_color, info);
else
{
@@ -338,7 +338,7 @@ int mutt_enter_fname (const char *prompt, char *buf, size_t blen, int *redraw, i
}
else
{
- char *pc = safe_malloc (strlen (prompt) + 3);
+ char *pc = safe_malloc (mutt_strlen (prompt) + 3);
sprintf (pc, "%s: ", prompt);
mutt_ungetch (ch.op ? 0 : ch.ch, ch.op ? ch.op : 0);
@@ -419,7 +419,7 @@ int mutt_multi_choice (char *prompt, char *letters)
else if (ch.ch <= '9' && ch.ch > '0')
{
choice = ch.ch - '0';
- if (choice <= strlen (letters))
+ if (choice <= mutt_strlen (letters))
break;
}
}