Introduced FDEF and FCUR for speaking arguments to getfolder().
[mmh] / uip / flist.c
index a86d226..5d9dfcc 100644 (file)
@@ -128,7 +128,7 @@ main(int argc, char **argv)
 #ifdef LOCALE
        setlocale(LC_ALL, "");
 #endif
-       invo_name = r1bindex(argv[0], '/');
+       invo_name = mhbasename(argv[0]);
 
        /* read user profile/context */
        context_read();
@@ -240,7 +240,7 @@ main(int argc, char **argv)
                free(path("./", TFOLDER));
 
        /* get current folder */
-       strncpy(curfolder, getfolder(1), sizeof(curfolder));
+       strncpy(curfolder, getfolder(FCUR), sizeof(curfolder));
 
        /* get nmh base directory */
        nmhdir = m_maildir("");