X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=zotnet%2Fmf%2Fmf.c;h=ab6dfa47d823c9ddb0f3a2bcbe376c04f940cda3;hb=278a48ef53b5dde10d7c88f67f51ce15ad11c0c0;hp=b129785e88d8f36c759ccc9222adac6cf9f350f9;hpb=1691e80890e5d8ba258c51c214a3e91880e1db2b;p=mmh diff --git a/zotnet/mf/mf.c b/zotnet/mf/mf.c index b129785..ab6dfa4 100644 --- a/zotnet/mf/mf.c +++ b/zotnet/mf/mf.c @@ -31,7 +31,9 @@ getcpy (char *s) register char *p; if (!s) { - _cleanup(); +/* causes compiles to blow up because the symbol _cleanup is undefined + where did this ever come from? */ + /* _cleanup(); */ abort(); for(;;) pause(); @@ -163,7 +165,7 @@ uucpadrx (char *addrs) return NULL; } - if ((wp = strchr(cp, ',')) == NULL) + if ((wp = strchr(cp, ',')) == NULL) { if ((wp = strchr(cp, ' ')) != NULL) { xp = wp; while (isspace (*xp)) @@ -172,11 +174,12 @@ uucpadrx (char *addrs) yp = xp + 4; while (isspace (*yp)) yp++; - if (*yp != 0) + if (*yp != 0) { if ((zp = strchr(yp, ' ')) != NULL) *zp = 0, tp = ++zp; else tp = NULL; + } else *wp = 0, tp = ++wp; } @@ -185,6 +188,7 @@ uucpadrx (char *addrs) } else tp = NULL; + } else *wp = 0, tp = ++wp; @@ -951,7 +955,7 @@ mfgets (FILE *in, char **bp) *cp++ = i; break; } - if (cp >= ep) + if (cp >= ep) { if (!(dp = realloc (pp, (size_t) (len += BUFSIZ)))) { free (pp); pp = NULL; @@ -959,5 +963,6 @@ mfgets (FILE *in, char **bp) } else cp += dp - pp, ep = (pp = cp) + len - 2; + } } }