]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(ctype?staetup): Correct initialization of class_collection256.
authorUlrich Drepper <drepper@redhat.com>
Thu, 17 Feb 2000 19:29:33 +0000 (19:29 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 17 Feb 2000 19:29:33 +0000 (19:29 +0000)
locale/programs/ld-ctype.c

index dacf72953ef824182b0cfa4a5befc1e57bd50275..b36d313ec3f6e55a202ebbfe4decda8ccf37451e 100644 (file)
@@ -185,7 +185,7 @@ ctype_startup (struct linereader *lr, struct localedef_t *locale,
     = (u_int32_t *) xcalloc (sizeof (unsigned long int),
                             ctype->class_collection_max);
   memset (ctype->class_collection256, '\0',
-         sizeof (unsigned long int) * 256);
+         sizeof (ctype->class_collection256[0]) * 256);
   ctype->class_collection_act = 256;
 
   /* Fill character map information.  */