X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fshowfile.c;h=594b269f2cbc8375f2acd220d0be871d43c18850;hp=3f23801f076f16aac3e6c6f5504beb46107e4e7d;hb=0073224c28bf81dad1812d406bb9915b24b23eb6;hpb=240013872c392fe644bd4f79382d9f5314b4ea60 diff --git a/sbr/showfile.c b/sbr/showfile.c index 3f23801..594b269 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(mhbasename(lproc), "mhl")) + if (strcmp(mhbasename(lproc), "mhl")==0) lproc = mhlproc; - switch (pid = vfork()) { + switch (pid = fork()) { case -1: /* fork error */ advise("fork", "unable to"); @@ -46,7 +46,7 @@ showfile(char **arg, char *file) } } if (isdraft) { - if (!strcmp(vec[0], "show")) + if (strcmp(vec[0], "show")==0) vec[vecp++] = "-file"; vec[vecp++] = file; }