X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Frmf.c;h=71fd017ff3e83f0d017c5da3ed8e6e8515f3cf6b;hb=240013872c392fe644bd4f79382d9f5314b4ea60;hp=38a93ff86bd9adca00899107acf22bdf6c55d773;hpb=714b5c530ece27ea2835a313013f5b770163403c;p=mmh diff --git a/uip/rmf.c b/uip/rmf.c index 38a93ff..71fd017 100644 --- a/uip/rmf.c +++ b/uip/rmf.c @@ -37,7 +37,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(); @@ -241,7 +241,7 @@ rma(char *folder) ** "atr-something-folderpath", and remove them. */ for (np = m_defs, pp = NULL; np; np = np->n_next) { - if (ssequal("atr-", np->n_name) && + if (isprefix("atr-", np->n_name) && (j = strlen(np->n_name) - plen) > alen && *(np->n_name + j) == '-' && strcmp(cp, np->n_name + j + 1) == 0) {