mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-22 11:04:51 -04:00
20 lines
616 B
Plaintext
20 lines
616 B
Plaintext
$NetBSD: patch-ac,v 1.2 2014/12/15 11:35:42 mef Exp $
|
|
|
|
--- libidu/idread.c.orig 2012-01-29 01:54:33.000000000 +0900
|
|
+++ libidu/idread.c 2014-11-20 22:58:01.000000000 +0900
|
|
@@ -210,12 +210,12 @@ token_flags (char const *buf)
|
|
return *(unsigned char const *)&buf[strlen (buf) + 1];
|
|
}
|
|
|
|
-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;
|