X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Frcvdist.c;h=4061735505a4692fa6d9b7eb2a6018381b20ce80;hb=25e812757fa325d017b47144923dcad62b66399d;hp=edbf65fffc19deacbe5394f6a2d5dda9cc8712d2;hpb=edc8d4615f73003ef06c644373763c345f1872c6;p=mmh diff --git a/uip/rcvdist.c b/uip/rcvdist.c index edbf65f..4061735 100644 --- a/uip/rcvdist.c +++ b/uip/rcvdist.c @@ -74,10 +74,10 @@ main (int argc, char **argv) "%s [switches] [switches for postproc] address ...", invo_name); print_help (buf, switches, 1); - done (1); + done (0); case VERSIONSW: print_version(invo_name); - done (1); + done (0); case FORMSW: if (!(form = *argp++) || *form == '-') @@ -262,7 +262,7 @@ finished: ; scanl = mh_xmalloc ((size_t) i + 2); dat[0] = dat[1] = dat[2] = dat[4] = 0; dat[3] = outputlinelen; - fmt_scan (fmt, scanl, i, dat); + fmt_scan (fmt, scanl, i + 1, i, dat); fputs (scanl, out); if (ferror (out))