Nico Golde:
[apps/madmutt.git] / enter.c
diff --git a/enter.c b/enter.c
index 793804b..1f5d6c3 100644 (file)
--- a/enter.c
+++ b/enter.c
@@ -489,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;