X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fnew.c;h=c1ae0cc5663556fd86e7e876fd9579862a2fe4a9;hp=92366623e2d69fcc66549d2eee71ae2299cf0ac7;hb=240013872c392fe644bd4f79382d9f5314b4ea60;hpb=c20b4fa14515c7ab388ce35411d89a7a92300711 diff --git a/uip/new.c b/uip/new.c index 9236662..c1ae0cc 100644 --- a/uip/new.c +++ b/uip/new.c @@ -436,7 +436,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(); @@ -475,7 +475,7 @@ main(int argc, char **argv) if (!(invo_name = *argp++) || *invo_name == '-') adios(NULL, "missing argument to %s", argp[-2]); - invo_name = r1bindex(invo_name, '/'); + invo_name = mhbasename(invo_name); continue; } }