X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fforw.c;h=13aaaa9992e03a085f3c415b448a0317482e3271;hp=9ad2877119e9105686f07c350952fa539fb5bfb1;hb=240013872c392fe644bd4f79382d9f5314b4ea60;hpb=c20b4fa14515c7ab388ce35411d89a7a92300711 diff --git a/uip/forw.c b/uip/forw.c index 9ad2877..13aaaa9 100644 --- a/uip/forw.c +++ b/uip/forw.c @@ -109,7 +109,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(); @@ -385,7 +385,7 @@ mhl_draft(int out, char *digest, int volume, int issue, if (pipe(pd) == NOTOK) adios("pipe", "unable to create"); - vec[0] = r1bindex(mhlproc, '/'); + vec[0] = mhbasename(mhlproc); for (i = 0; (child_id = fork()) == NOTOK && i < 5; i++) sleep(5);