X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=browser.c;h=3477f9ae78172b7ac44bc7def2d4d24d1f0d6fcb;hp=18b442f017255e0d685327159fef59fa9844b52a;hb=2ea77d3b2827ba23feb756ce2fb936565ae38998;hpb=3e611c4b53a33408955152e1c9336f8643ea096e diff --git a/browser.c b/browser.c index 18b442f..3477f9a 100644 --- a/browser.c +++ b/browser.c @@ -530,7 +530,7 @@ static int examine_directory (MUTTMENU * menu, struct browser_state *state, init_state (state, menu); while ((de = readdir (dp)) != NULL) { - if (str_cmp (de->d_name, ".") == 0) + if (m_strcmp(de->d_name, ".") == 0) continue; /* we don't need . */ if (prefix && *prefix @@ -892,8 +892,8 @@ void _mutt_select_file (char *f, size_t flen, int flags, char ***files, /* save the old directory */ strfcpy (OldLastDir, LastDir, sizeof (OldLastDir)); - if (str_cmp (state.entry[menu->current].name, "..") == 0) { - if (str_cmp ("..", LastDir + m_strlen(LastDir) - 2) == 0) + if (m_strcmp(state.entry[menu->current].name, "..") == 0) { + if (m_strcmp("..", LastDir + m_strlen(LastDir) - 2) == 0) strcat (LastDir, "/.."); /* __STRCAT_CHECKED__ */ else { char *p = strrchr (LastDir + 1, '/');