X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=enter.c;fp=enter.c;h=8dac2261a3e62ef22e8f707fe7f39d72bc32f91c;hp=cd98df94558ac5c1c1990ca180bad0fe12cd83b7;hb=a8477ebaa09990b3688164cbe5cf661c4189541d;hpb=e01486aabea6f0af36933158bd58b9ab03b30add diff --git a/enter.c b/enter.c index cd98df9..8dac226 100644 --- a/enter.c +++ b/enter.c @@ -501,7 +501,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 = mutt_strlen (buf); + i = str_len (buf); if (i && buf[i - 1] == '=' && mutt_var_value_complete (buf, buflen, i)) state->tabs = 0; @@ -637,7 +637,7 @@ int _mutt_enter_string (char *buf, size_t buflen, int y, int x, *numfiles = 1; tfiles = safe_calloc (*numfiles, sizeof (char *)); mutt_expand_path (buf, buflen); - tfiles[0] = safe_strdup (buf); + tfiles[0] = str_dup (buf); *files = tfiles; } rv = 0;