--- opensc-0.8.1/src/libopensc/asn1.c.ori Wed Oct 13 12:38:24 2004 +++ opensc-0.8.1/src/libopensc/asn1.c Wed Oct 13 12:39:15 2004 @@ -474,7 +474,7 @@ */ static int decode_bit_field(const u8 * inbuf, size_t inlen, void *outbuf, size_t outlen) { - u8 data[sizeof(unsigned int)]; + u8 data[sizeof(size_t)]; unsigned int field = 0; int i, n; @@ -495,7 +495,7 @@ static int encode_bit_field(const u8 *inbuf, size_t inlen, u8 **outbuf, size_t *outlen) { - u8 data[sizeof(unsigned int)]; + u8 data[sizeof(size_t)]; unsigned int field = 0; int i, bits;