]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - filter/pdftops.c
<rdar://problem/5792631> dependency cycle in cups-144 / PrintingCore-250 / Applicatio...
[thirdparty/cups.git] / filter / pdftops.c
index 7db2532f0f030f564f9fd6d59cb957b0afc60ea2..9db1e91681206e38b62d5b7c2d1ae13c70d51373 100644 (file)
@@ -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);
       }
     }