--- filter/pdftops.c.orig	2008-02-23 14:17:52.000000000 +0100
+++ filter/pdftops.c	2008-02-23 15:39:56.000000000 +0100
@@ -211,13 +211,13 @@
 
       if (orientation & 1)
       {
-	snprintf(pdfwidth, sizeof(pdfwidth), "%.1f", size->length);
-	snprintf(pdfheight, sizeof(pdfheight), "%.1f", size->width);
+	snprintf(pdfwidth, sizeof(pdfwidth), "%d", (int)(size->length));
+	snprintf(pdfheight, sizeof(pdfheight), "%d", (int)(size->width));
       }
       else
       {
-	snprintf(pdfwidth, sizeof(pdfwidth), "%.1f", size->width);
-	snprintf(pdfheight, sizeof(pdfheight), "%.1f", size->length);
+	snprintf(pdfwidth, sizeof(pdfwidth), "%d", (int)(size->width));
+		 snprintf(pdfheight, sizeof(pdfheight), "%d", (int)(size->length));
       }
 
       pdfargv[pdfargc++] = (char *)"-paperw";
@@ -242,7 +242,7 @@
     * Child comes here...
     */
 
-    execv(CUPS_PDFTOPS, argv);
+    execv(CUPS_PDFTOPS, pdfargv);
     _cupsLangPrintError(_("ERROR: Unable to execute pdftops filter"));
     exit(1);
   }
