Renamed r1bindex() to mhbasename(), to make its function becomes clear.
[mmh] / uip / refile.c
index b24e42e..a79e8be 100644 (file)
@@ -73,7 +73,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();
@@ -335,7 +335,7 @@ remove_files(int filep, char **files)
                files[filep] = NULL;  /* NULL terminate list */
 
                fflush(stdout);
-               vec[0] = r1bindex(rmmproc, '/');
+               vec[0] = mhbasename(rmmproc);
                execvp(rmmproc, vec);
                adios(rmmproc, "unable to exec");
        }