Renamed r1bindex() to mhbasename(), to make its function becomes clear.
[mmh] / uip / forw.c
index 9ad2877..13aaaa9 100644 (file)
@@ -109,7 +109,7 @@ main(int argc, char **argv)
 #ifdef LOCALE
        setlocale(LC_ALL, "");
 #endif
 #ifdef LOCALE
        setlocale(LC_ALL, "");
 #endif
-       invo_name = r1bindex(argv[0], '/');
+       invo_name = mhbasename(argv[0]);
 
        /* read user profile/context */
        context_read();
 
        /* 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");
 
        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);
 
        for (i = 0; (child_id = fork()) == NOTOK && i < 5; i++)
                sleep(5);