$NetBSD: patch-aa,v 1.1 2006/01/20 01:19:23 joerg Exp $ --- lpstyl.c.orig 2006-01-20 01:13:29.000000000 +0000 +++ lpstyl.c @@ -1015,10 +1015,13 @@ size_t readFileScanline(char *bufK, char if((i & 0x03) == 0) { /* write the output */ - *((unsigned char *)bufK)++ = cmyk & 0x000000FF; cmyk >>= 8; - *((unsigned char *)bufY)++ = cmyk & 0x000000FF; cmyk >>= 8; - *((unsigned char *)bufM)++ = cmyk & 0x000000FF; cmyk >>= 8; - *((unsigned char *)bufC)++ = cmyk & 0x000000FF; + *bufK++ = (char)(cmyk & 0x000000FF); + cmyk >>= 8; + *bufY++ = (char)(cmyk & 0x000000FF); + cmyk >>= 8; + *bufM++ = (char)(cmyk & 0x000000FF); + cmyk >>= 8; + *bufC++ = (char)(cmyk & 0x000000FF); cmyk = 0; } } @@ -1031,10 +1034,10 @@ size_t readFileScanline(char *bufK, char } /* write the final part */ - *((unsigned char *)bufK)++ = cmyk & 0x000000FF; cmyk >>= 8; - *((unsigned char *)bufY)++ = cmyk & 0x000000FF; cmyk >>= 8; - *((unsigned char *)bufM)++ = cmyk & 0x000000FF; cmyk >>= 8; - *((unsigned char *)bufC)++ = cmyk & 0x000000FF; + *bufK++ = (char)(cmyk & 0x000000FF); cmyk >>= 8; + *bufY++ = (char)(cmyk & 0x000000FF); cmyk >>= 8; + *bufM++ = (char)(cmyk & 0x000000FF); cmyk >>= 8; + *bufC++ = (char)(cmyk & 0x000000FF); } else {