about summary refs log tree commit diff
path: root/locale/programs/ld-ctype.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-11-27 02:43:16 +0000
committerUlrich Drepper <drepper@redhat.com>1999-11-27 02:43:16 +0000
commitb1c9ad82a03bfda99e032a22297973bc4c773302 (patch)
treeae8172ca41f5e983091508f635f12f609bed1e5b /locale/programs/ld-ctype.c
parent70e22d49c55bfc1b5108d2a726183795b41b2a45 (diff)
downloadglibc-b1c9ad82a03bfda99e032a22297973bc4c773302.tar.gz
glibc-b1c9ad82a03bfda99e032a22297973bc4c773302.tar.xz
glibc-b1c9ad82a03bfda99e032a22297973bc4c773302.zip
Update.
	* locale/programs/ld-ctype.c (allocate_arrays): Complete last
	patch.  Use wch instead of idx to compute index.
	Patch by Shinya Hanataka <hanataka@abyss.rim.or.jp>.
Diffstat (limited to 'locale/programs/ld-ctype.c')
-rw-r--r--locale/programs/ld-ctype.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/locale/programs/ld-ctype.c b/locale/programs/ld-ctype.c
index c82a36b80c..6273663933 100644
--- a/locale/programs/ld-ctype.c
+++ b/locale/programs/ld-ctype.c
@@ -3108,10 +3108,10 @@ Computing table size for character classes might take a while..."),
 	      if (wch != ILLEGAL_CHAR_VALUE)
 		{
 		  /* Store the value.  */
-		  size_t nr = idx % ctype->plane_size;
+		  size_t nr = wch % ctype->plane_size;
 		  size_t depth = 0;
 
-		  while (ctype->names[nr + depth * ctype->plane_size] != nr)
+		  while (ctype->names[nr + depth * ctype->plane_size] != wch)
 		    ++depth;
 		  assert (depth < ctype->plane_cnt);