X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/50efd1a131ba6735764a598cbd4df530c5412ba2..5924b5736a3bec0c2ef93ddbd1da733745942d59:/term_ps.c diff --git a/term_ps.c b/term_ps.c index f3ab1b4c..e8a90685 100644 --- a/term_ps.c +++ b/term_ps.c @@ -1,6 +1,6 @@ -/* $Id: term_ps.c,v 1.52 2011/08/16 12:23:51 kristaps Exp $ */ +/* $Id: term_ps.c,v 1.54 2011/10/16 12:20:34 schwarze Exp $ */ /* - * Copyright (c) 2010 Kristaps Dzonsons + * Copyright (c) 2010, 2011 Kristaps Dzonsons * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -488,8 +488,7 @@ pspdf_alloc(char *outopts) pagey = 356; } else if (2 != sscanf(pp, "%ux%u", &pagex, &pagey)) fprintf(stderr, "%s: Unknown paper\n", pp); - } else if (NULL == pp) - pp = "letter"; + } /* * This MUST be defined before any PNT2AFM or AFM2PNT @@ -576,7 +575,7 @@ ps_printf(struct termp *p, const char *fmt, ...) ps_growbuf(p, PS_BUFSLOP); pos = (int)p->ps->psmargcur; - len = vsnprintf(&p->ps->psmarg[pos], PS_BUFSLOP, fmt, ap); + vsnprintf(&p->ps->psmarg[pos], PS_BUFSLOP, fmt, ap); va_end(ap);