Nico Golde:
[apps/madmutt.git] / enter.c
diff --git a/enter.c b/enter.c
index 10f0725..1f5d6c3 100644 (file)
--- a/enter.c
+++ b/enter.c
@@ -18,6 +18,8 @@
 #include "keymap.h"
 #include "history.h"
 
+#include "lib/mem.h"
+
 #include <string.h>
 
 /* redraw flags for mutt_enter_string() */
@@ -487,7 +489,7 @@ int _mutt_enter_string (char *buf, size_t buflen, int y, int x,
         }
         else if (flags & M_COMMAND) {
           my_wcstombs (buf, buflen, state->wbuf, state->curpos);
-          i = mutt_strlen (buf);
+          i = safe_strlen (buf);
           if (i && buf[i - 1] == '=' &&
               mutt_var_value_complete (buf, buflen, i))
             state->tabs = 0;