From: Michael R Sweet Date: Fri, 11 Feb 2022 12:51:07 +0000 (-0500) Subject: Fix testclient bug with too-long raster. X-Git-Tag: v2.4.2~45 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d590142901032f95da0121e865cdd8182158ef64;p=thirdparty%2Fcups.git Fix testclient bug with too-long raster. --- diff --git a/cups/testclient.c b/cups/testclient.c index 25f7c4f750..6b947ff961 100644 --- a/cups/testclient.c +++ b/cups/testclient.c @@ -599,7 +599,7 @@ make_raster_file(ipp_t *response, /* I - Printer attributes */ memset(line, 0xff, header.cupsBytesPerLine); - for (y = 0; y < header.cupsHeight; y ++) + for (; y < header.cupsHeight; y ++) cupsRasterWritePixels(ras, line, header.cupsBytesPerLine); free(line);