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 /enter.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 'enter.c')
-rw-r--r-- | enter.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |