X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fshowfile.c;h=78eea645a24d1fea7a6078ceff37b981c0a1faa7;hb=40821f5c1316e9205a08375e7075909cc9968e7d;hp=c0d3608bee79afa819c4f0530695a88440081715;hpb=714b5c530ece27ea2835a313013f5b770163403c;p=mmh diff --git a/sbr/showfile.c b/sbr/showfile.c index c0d3608..78eea64 100644 --- a/sbr/showfile.c +++ b/sbr/showfile.c @@ -24,10 +24,10 @@ 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()) { + switch (pid = fork()) { case -1: /* fork error */ advise("fork", "unable to"); @@ -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) {