rlescak / rpms / cups

Forked from rpms/cups 2 years ago
Clone
ce18aa9
diff --git a/filter/rastertoepson.c b/filter/rastertoepson.c
ce18aa9
index 73e8d0600..4522e6b48 100644
ce18aa9
--- a/filter/rastertoepson.c
ce18aa9
+++ b/filter/rastertoepson.c
ce18aa9
@@ -301,7 +302,7 @@ StartPage(
ce18aa9
 
ce18aa9
   if (DotBytes)
ce18aa9
   {
ce18aa9
-    if ((LineBuffers[0] = calloc((size_t)DotBytes, header->cupsWidth * (size_t)(Shingling + 1))) == NULL)
ce18aa9
+    if ((LineBuffers[0] = calloc((size_t)DotBytes, (header->cupsWidth + 7) * (size_t)(Shingling + 1))) == NULL)
ce18aa9
     {
ce18aa9
       fputs("ERROR: Unable to allocate memory\n", stderr);
ce18aa9
       exit(1);