X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fap.c;h=fdb47e2a309c8c1ba4e453d1c7287ad5523c71cc;hb=ab3e934551e83f49a04975b05c11c1b3d5768642;hp=b0934fbcebbb035a1f3c54825fb38b4b0451b816;hpb=df6971a59e8d01dcfe605bbac949b7d4b3ab0a92;p=mmh diff --git a/uip/ap.c b/uip/ap.c index b0934fb..fdb47e2 100644 --- a/uip/ap.c +++ b/uip/ap.c @@ -82,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 == '-') @@ -190,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);