X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fviamail.c;h=76450ac4df6b7b1e07e4a238d8dd69b9a92cb282;hp=bbae08b4bb71d113166f683d3a0cdb9d2f81db4d;hb=8ff284ff9167eff8f5349481529332d59ed913b1;hpb=714b5c530ece27ea2835a313013f5b770163403c diff --git a/uip/viamail.c b/uip/viamail.c index bbae08b..76450ac 100644 --- a/uip/viamail.c +++ b/uip/viamail.c @@ -75,7 +75,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) @@ -218,17 +218,17 @@ via_mail(char *mailsw, char *subjsw, char *parmsw, char *descsw, adios("failed", "fstat of %s", tmpfil); status = 0; - vec[0] = r1bindex(postproc, '/'); + vec[0] = mhbasename(postproc); if (verbsw) vec[vecp++] = "-verbose"; - switch (sendsbr(vec, vecp, tmpfil, &st, 0, (char *)0, 0)) { - case DONE: - case NOTOK: - status++; - break; - case OK: - break; + switch (sendsbr(vec, vecp, tmpfil, &st, 0)) { + case DONE: + case NOTOK: + status++; + break; + case OK: + break; } fclose(fp);