X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fcups.git;a=blobdiff_plain;f=filter%2Fpdftops.c;h=9db1e91681206e38b62d5b7c2d1ae13c70d51373;hp=7db2532f0f030f564f9fd6d59cb957b0afc60ea2;hb=50fe720154d2af59cdeeaecf05cc868530e16248;hpb=db0bd74adb0b363f586ceb3314c7ebbbe4596e3d 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); } }