X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fforw.c;h=77339b30312311b55790f100a261ac44a58bc471;hb=10eff860a28b96582526eb739fd0a55441669938;hp=c754b2789c66c3c48d79cf5583a600afa1fb0a55;hpb=cf1205b5cbea2f0cd6ea710ec16c637df85b647c;p=mmh diff --git a/uip/forw.c b/uip/forw.c index c754b27..77339b3 100644 --- a/uip/forw.c +++ b/uip/forw.c @@ -130,7 +130,6 @@ main(int argc, char **argv) if (!(digest = *argp++) || *digest == '-') adios(EX_USAGE, NULL, "missing argument to %s", argp[-2]); - //mime = 0; continue; case ISSUESW: if (!(cp = *argp++) || *cp == '-') @@ -297,10 +296,10 @@ build_form(char *form, char *digest, int volume, int issue) { int in; int fmtsize; - register char *fmtstr; + char *fmtstr; char *line, tmpfil[BUFSIZ]; FILE *tmp; - register struct comp *cptr; + struct comp *cptr; struct format *fmt; int dat[5]; char *cp = NULL; @@ -334,7 +333,7 @@ build_form(char *form, char *digest, int volume, int issue) if ((in = dup(fileno(tmp))) == NOTOK) adios(EX_OSERR, "dup", "unable to"); - line = mh_xmalloc((unsigned) fmtsize); + line = mh_xcalloc((unsigned) fmtsize, sizeof(char)); fmt_scan(fmt, line, fmtsize, dat); fputs(line, tmp); free(line);