From 7b466f29e8bb5cc3ffbb7ff5167f4befbed5f7d4 Mon Sep 17 00:00:00 2001 From: msweet Date: Wed, 19 Feb 2014 20:07:09 +0000 Subject: [PATCH] The Zebra printer driver did not properly handle negative "label top" values (STR #4354) git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@11621 a1ca3aef-8c08-0410-bb20-df032aa958be --- CHANGES-1.7.txt | 2 ++ filter/rastertolabel.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES-1.7.txt b/CHANGES-1.7.txt index 6a456f08c..7eb27f29e 100644 --- a/CHANGES-1.7.txt +++ b/CHANGES-1.7.txt @@ -5,6 +5,8 @@ CHANGES IN CUPS V1.7.2 - Security: The scheduler now blocks URLs containing embedded HTML (STR #4356) + - The Zebra printer driver did not properly handle negative "label top" + values (STR #4354) - The scheduler did not always update the MakeModel value in printers.conf after updating the driver (STR #4264) - The LPD mini daemon did not support print jobs larger than 2GB diff --git a/filter/rastertolabel.c b/filter/rastertolabel.c index bcd5ca1d9..162307d65 100644 --- a/filter/rastertolabel.c +++ b/filter/rastertolabel.c @@ -557,7 +557,7 @@ EndPage(ppd_file_t *ppd, /* I - PPD file */ */ if (header->cupsRowStep != 200) - printf("^LT%u\n", header->cupsRowStep); + printf("^LT%d\n", header->cupsRowStep); /* * Set media type... -- 2.39.5