use m_strdup and m_strlen that are inlined for efficiency
[apps/madmutt.git] / enter.c
diff --git a/enter.c b/enter.c
index 4841111..b742739 100644 (file)
--- a/enter.c
+++ b/enter.c
@@ -503,7 +503,7 @@ int _mutt_enter_string (char *buf, size_t buflen, int y, int x,
           goto bye;
         } else if (flags & M_COMMAND) {
           my_wcstombs (buf, buflen, state->wbuf, state->curpos);
-          i = str_len (buf);
+          i = m_strlen(buf);
           if (i && buf[i - 1] == '=' &&
               mutt_var_value_complete (buf, buflen, i))
             state->tabs = 0;
@@ -639,7 +639,7 @@ int _mutt_enter_string (char *buf, size_t buflen, int y, int x,
           *numfiles = 1;
           tfiles = p_new(char *, *numfiles);
           mutt_expand_path (buf, buflen);
-          tfiles[0] = str_dup (buf);
+          tfiles[0] = m_strdup(buf);
           *files = tfiles;
         }
         rv = 0;