X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fm_backup.c;h=3749452b1e3128f6bbde2b6201b346203db246da;hb=39e87a75b5c2d3572ec72e717720b44af291e88a;hp=17f7ad59d7e0d9b2d41fdae4b33c3e0968cb27e5;hpb=714b5c530ece27ea2835a313013f5b770163403c;p=mmh diff --git a/sbr/m_backup.c b/sbr/m_backup.c index 17f7ad5..3749452 100644 --- a/sbr/m_backup.c +++ b/sbr/m_backup.c @@ -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),