Renamed r1bindex() to mhbasename(), to make its function becomes clear.
[mmh] / uip / conflict.c
index 909bbc8..5710aab 100644 (file)
@@ -68,7 +68,7 @@ main(int argc, char **argv)
 #ifdef LOCALE
        setlocale(LC_ALL, "");
 #endif
-       invo_name = r1bindex(argv[0], '/');
+       invo_name = mhbasename(argv[0]);
 
        /* foil search of user profile/context */
        if (context_foil(NULL) == -1)
@@ -360,7 +360,7 @@ setup(void)
                                                dup2(fd, 1);
                                                close(fd);
                                        }
-                               execlp(mailproc, r1bindex (mailproc, '/'),
+                               execlp(mailproc, mhbasename(mailproc),
                                                mail, "-subject", invo_name,
                                                NULL);
                                adios(mailproc, "unable to exec ");