diff options
Diffstat (limited to 'filter/pdftops.c')
-rw-r--r-- | filter/pdftops.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/filter/pdftops.c b/filter/pdftops.c index 7db2532f0..9db1e9168 100644 --- a/filter/pdftops.c +++ b/filter/pdftops.c @@ -211,13 +211,13 @@ main(int argc, /* I - Number of command-line args */ if (orientation & 1) { - snprintf(pdfwidth, sizeof(pdfwidth), "%.1f", size->length); - snprintf(pdfheight, sizeof(pdfheight), "%.1f", size->width); + snprintf(pdfwidth, sizeof(pdfwidth), "%.0f", size->length); + snprintf(pdfheight, sizeof(pdfheight), "%.0f", size->width); } else { - snprintf(pdfwidth, sizeof(pdfwidth), "%.1f", size->width); - snprintf(pdfheight, sizeof(pdfheight), "%.1f", size->length); + snprintf(pdfwidth, sizeof(pdfwidth), "%.0f", size->width); + snprintf(pdfheight, sizeof(pdfheight), "%.0f", size->length); } pdfargv[pdfargc++] = (char *)"-paperw"; @@ -242,7 +242,7 @@ main(int argc, /* I - Number of command-line args */ * Child comes here... */ - execv(CUPS_PDFTOPS, argv); + execv(CUPS_PDFTOPS, pdfargv); _cupsLangPrintError(_("ERROR: Unable to execute pdftops filter")); exit(1); } @@ -273,7 +273,7 @@ main(int argc, /* I - Number of command-line args */ pdfstatus = WEXITSTATUS(pdfstatus); _cupsLangPrintf(stderr, - _("ERROR: pdftops filter exited with status %d!"), + _("ERROR: pdftops filter exited with status %d!\n"), pdfstatus); } else @@ -281,7 +281,7 @@ main(int argc, /* I - Number of command-line args */ pdfstatus = WTERMSIG(pdfstatus); _cupsLangPrintf(stderr, - _("ERROR: pdftops filter crashed on signal %d!"), + _("ERROR: pdftops filter crashed on signal %d!\n"), pdfstatus); } } |