X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fmhbuildsbr.c;h=f65b6e32c2e5835752949703c6665f16397ca545;hb=dba36faad141d652c7b84d26295537c76fd2b5be;hp=873b0e3a8c2e5ca877daebe63ecd041939b4d0fa;hpb=d39e2c447b0d163a5a63f480b23d06edb7a73aa0;p=mmh diff --git a/uip/mhbuildsbr.c b/uip/mhbuildsbr.c index 873b0e3..f65b6e3 100644 --- a/uip/mhbuildsbr.c +++ b/uip/mhbuildsbr.c @@ -703,7 +703,7 @@ use_forw: ap = brkstring(ci->ci_magic, " ", "\n"); copyip(ap, arguments, MAXARGS); } else { - arguments[0] = "cur"; + arguments[0] = seq_cur; arguments[1] = NULL; } folder = NULL; @@ -1120,7 +1120,7 @@ raw: if ((out = fopen(ce->ce_file, "w")) == NULL) adios(ce->ce_file, "unable to open for writing"); - for (i = 0; (child_id = vfork()) == NOTOK && i > 5; i++) + for (i = 0; (child_id = fork()) == NOTOK && i > 5; i++) sleep(5); switch (child_id) { case NOTOK: @@ -1335,7 +1335,7 @@ scan_content(CT ct) if (!isspace(*cp)) break; *++cp = '\0'; - if (!strncmp(buffer + 2, prefix, len) && + if (strncmp(buffer + 2, prefix, len)==0 && isdigit(buffer[2 + len])) { boundaryclash = 1; /* no need to keep checking */