X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fshowfile.c;h=3f23801f076f16aac3e6c6f5504beb46107e4e7d;hp=c0d3608bee79afa819c4f0530695a88440081715;hb=240013872c392fe644bd4f79382d9f5314b4ea60;hpb=c20b4fa14515c7ab388ce35411d89a7a92300711 diff --git a/sbr/showfile.c b/sbr/showfile.c index c0d3608..3f23801 100644 --- a/sbr/showfile.c +++ b/sbr/showfile.c @@ -24,7 +24,7 @@ showfile(char **arg, char *file) ** then really invoked the mhlproc instead ** (which is usually mhl anyway). */ - if (!strcmp(r1bindex(lproc, '/'), "mhl")) + if (!strcmp(mhbasename(lproc), "mhl")) lproc = mhlproc; switch (pid = vfork()) { @@ -36,7 +36,7 @@ showfile(char **arg, char *file) case 0: /* child */ vecp = 0; - vec[vecp++] = r1bindex(lproc, '/'); + vec[vecp++] = mhbasename(lproc); isdraft = 1; if (arg) { while (*arg) {