]> git.sur5r.net Git - openldap/commitdiff
Short term fix for ITS#1960
authorKurt Zeilenga <kurt@openldap.org>
Tue, 23 Jul 2002 18:22:58 +0000 (18:22 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 23 Jul 2002 18:22:58 +0000 (18:22 +0000)
Code really should be changed to write only 'unsigned int's
with simple sanity check.

libraries/liblunicode/ucdata/ucdata.c

index beb4184f03f55a5339dab12854dda44596018b22..77e32a3a3cceaf62771029e24b15de22cbc923bf 100644 (file)
@@ -30,6 +30,7 @@
 #include "ldap_config.h"
 
 #include <stdio.h>
+#include <ac/bytes.h>
 #include <ac/stdlib.h>
 #include <ac/string.h>
 #include <ac/unistd.h>
  **************************************************************************/
 
 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;