diff options
Diffstat (limited to 'devel/id-utils/patches/patch-ap')
-rw-r--r-- | devel/id-utils/patches/patch-ap | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/devel/id-utils/patches/patch-ap b/devel/id-utils/patches/patch-ap new file mode 100644 index 00000000000..d8e3e6f0860 --- /dev/null +++ b/devel/id-utils/patches/patch-ap @@ -0,0 +1,19 @@ +$NetBSD: patch-ap,v 1.1 2002/03/01 01:38:48 jmc Exp $ + +--- libidu/idread.c.orig Fri Mar 1 01:22:36 2002 ++++ libidu/idread.c Fri Mar 1 01:22:52 2002 +@@ -207,12 +207,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; |