- The cups-lpd mini-daemon did not check for request parameters
(STR #4603)
- The scheduler could get caught in a busy loop (STR #4605)
+ - The sample Epson driver could crash (STR #4616)
- Added Russian translation (STR #4577)
*
* EPSON ESC/P and ESC/P2 filter for CUPS.
*
- * Copyright 2007-2014 by Apple Inc.
+ * Copyright 2007-2015 by Apple Inc.
* Copyright 1993-2007 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
}
for (width = header->cupsWidth, tempptr = CompBuffer;
- width > 0;
+ width > 1;
width -= 2, tempptr += 2, oddptr += DotBytes * 2,
evenptr += DotBytes * 2)
{
evenptr[0] = tempptr[0];
oddptr[0] = tempptr[1];
}
+
+ if (width == 1)
+ {
+ evenptr[0] = tempptr[0];
+ oddptr[0] = tempptr[1];
+ }
}
else
{
putchar(0);
}
+ if (dot_count & 1)
+ putchar(*ptr);
+
/*
* Move the head back and print the odd bytes...
*/
putchar(0);
putchar(*ptr);
}
+
+ if (dot_count & 1)
+ putchar(0);
}
else
pwrite(dot_ptr, dot_count);