$NetBSD: patch-ac,v 1.1.1.1 2006/08/05 19:53:26 wiz Exp $ --- libidu/idread.c.orig 2005-12-27 00:23:18.000000000 -0500 +++ libidu/idread.c 2006-08-03 12:27:38.779542243 -0400 @@ -211,12 +211,12 @@ #define TOK_COUNT_ADDR(buf) ((unsigned char const *)(TOK_FLAGS_ADDR (buf) + 1)) #define TOK_HITS_ADDR(buf) ((unsigned char const *)(TOK_COUNT_ADDR (buf) + 2)) -unsigned short +unsigned int token_count (char const *buf) { unsigned char const *flags = (unsigned char const *)&buf[strlen (buf) + 1]; unsigned char const *addr = flags + 1; - unsigned short count = *addr; + unsigned int count = *addr; if (*flags & TOK_SHORT_COUNT) count += (*++addr << 8); return count;