From a3f726e35f1e7d918061074a85ebe7a2c7c300a5 Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Tue, 10 Nov 1998 22:14:00 +0000 Subject: 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. --- enter.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'enter.c') diff --git a/enter.c b/enter.c index f598a0b7..301de8bf 100644 --- a/enter.c +++ b/enter.c @@ -88,7 +88,7 @@ int mutt_enter_string (unsigned char *buf, size_t buflen, int y, int x, if (redraw == M_REDRAW_INIT) { /* full redraw */ - lastchar = curpos = strlen ((char *) buf); + lastchar = curpos = mutt_strlen ((char *) buf); begin = lastchar - width; } if (begin < 0) @@ -321,7 +321,7 @@ int mutt_enter_string (unsigned char *buf, size_t buflen, int y, int x, { buf[curpos] = 0; for (j = curpos - 1; j >= 0 && buf[j] != ' '; j--); - if (strcmp (tempbuf, (char *) buf) == 0) + if (mutt_strcmp (tempbuf, (char *) buf) == 0) { mutt_select_file ((char *) buf + j + 1, buflen - j - 1, 0); set_option (OPTNEEDREDRAW); @@ -373,7 +373,7 @@ int mutt_enter_string (unsigned char *buf, size_t buflen, int y, int x, buf[curpos] = 0; /* see if the path has changed from the last time */ - if (strcmp (tempbuf, (char *) buf) == 0) + if (mutt_strcmp (tempbuf, (char *) buf) == 0) { mutt_select_file ((char *) buf, buflen, 0); set_option (OPTNEEDREDRAW); -- cgit v1.2.3