diff options
Diffstat (limited to 'filter/rastertoepson.c')
-rw-r--r-- | filter/rastertoepson.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/filter/rastertoepson.c b/filter/rastertoepson.c index 4efe6692..3de491f9 100644 --- a/filter/rastertoepson.c +++ b/filter/rastertoepson.c @@ -1,7 +1,7 @@ /* * EPSON ESC/P and ESC/P2 filter for CUPS. * - * Copyright 2007-2015 by Apple Inc. + * Copyright 2007-2018 by Apple Inc. * Copyright 1993-2007 by Easy Software Products. * * These coded instructions, statements, and computer programs are the @@ -307,7 +307,7 @@ StartPage( if (DotBytes) { - if ((LineBuffers[0] = calloc((size_t)DotBytes, header->cupsWidth * (size_t)(Shingling + 1))) == NULL) + if ((LineBuffers[0] = calloc((size_t)DotBytes, (header->cupsWidth + 7) * (size_t)(Shingling + 1))) == NULL) { fputs("ERROR: Unable to allocate memory\n", stderr); exit(1); |