From: Kurt Zeilenga Date: Tue, 23 Jul 2002 18:22:58 +0000 (+0000) Subject: Short term fix for ITS#1960 X-Git-Tag: NO_SLAP_OP_BLOCKS~1353 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b6bbc69e2f8d3f27b87f7448828a7d4f632214c9;p=openldap Short term fix for ITS#1960 Code really should be changed to write only 'unsigned int's with simple sanity check. --- diff --git a/libraries/liblunicode/ucdata/ucdata.c b/libraries/liblunicode/ucdata/ucdata.c index beb4184f03..77e32a3a3c 100644 --- a/libraries/liblunicode/ucdata/ucdata.c +++ b/libraries/liblunicode/ucdata/ucdata.c @@ -30,6 +30,7 @@ #include "ldap_config.h" #include +#include #include #include #include @@ -44,11 +45,11 @@ **************************************************************************/ typedef struct { - unsigned short bom; - unsigned short cnt; + ac_uint4 bom; + ac_uint4 cnt; union { - unsigned long bytes; - unsigned short len[2]; + ac_uint4 bytes; + ac_uint2 len[2]; } size; } _ucheader_t;