]> git.marmaro.de Git - mmh/blobdiff - sbr/m_backup.c
Removed the -nomoreproc switch from mhl, show, mhshow.
[mmh] / sbr / m_backup.c
index 17f7ad59d7e0d9b2d41fdae4b33c3e0968cb27e5..3749452b1e3128f6bbde2b6201b346203db246da 100644 (file)
@@ -15,7 +15,7 @@ m_backup(char *file)
        char *cp;
        static char buffer[BUFSIZ];
 
-       if ((cp = r1bindex(file, '/')) == file)
+       if ((cp = mhbasename(file)) == file)
                snprintf(buffer, sizeof(buffer), "%s%s", backup_prefix, cp);
        else
                snprintf(buffer, sizeof(buffer), "%.*s%s%s", (int)(cp - file),