X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fap.c;h=fdb47e2a309c8c1ba4e453d1c7287ad5523c71cc;hb=90986dddba4b24b0449238f86f836581cfb93938;hp=ea2d36d776e039afe3e73fe06bfe0a0be185674e;hpb=38615191e71744b066425e0c44412b62dbe49cc2;p=mmh diff --git a/uip/ap.c b/uip/ap.c index ea2d36d..fdb47e2 100644 --- a/uip/ap.c +++ b/uip/ap.c @@ -2,8 +2,6 @@ /* * ap.c -- parse addresses 822-style * - * $Id$ - * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. @@ -44,11 +42,6 @@ static struct format *fmt; static int dat[5]; /* - * prototypes - */ -int sc_width (void); /* from termsbr.c */ - -/* * static prototypes */ static int process (char *, int, int); @@ -89,10 +82,10 @@ main (int argc, char **argv) snprintf (buf, sizeof(buf), "%s [switches] addrs ...", 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 == '-') @@ -197,7 +190,7 @@ process (char *arg, int length, int norm) if (cptr) cptr->c_text = p->pq_error; - fmt_scan (fmt, buffer, length, dat); + fmt_scan (fmt, buffer, sizeof buffer - 1, length, dat); fputs (buffer, stdout); free (p->pq_text);