X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fnew.c;h=c1ae0cc5663556fd86e7e876fd9579862a2fe4a9;hb=097c84b61603c4a4c5837f3dcc09c30a1e751702;hp=92366623e2d69fcc66549d2eee71ae2299cf0ac7;hpb=714b5c530ece27ea2835a313013f5b770163403c;p=mmh 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; } }