mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Update.
* wctype/wctrans.c (wctrans): Use correct base index to access extra mapping tables. * locale/loadlocale.c (_nl_load_locale): Use actual number of entries from file and not the fixed (minimal number from the langinfo.h list.
This commit is contained in:
@ -176,8 +176,7 @@ _nl_load_locale (struct loaded_l10nfile *file, int category)
|
||||
}
|
||||
|
||||
newdata = malloc (sizeof *newdata
|
||||
+ (_nl_category_num_items[category]
|
||||
* sizeof (union locale_data_value)));
|
||||
+ filedata->nstrings * sizeof (union locale_data_value));
|
||||
if (! newdata)
|
||||
goto puntmap;
|
||||
|
||||
@ -186,7 +185,7 @@ _nl_load_locale (struct loaded_l10nfile *file, int category)
|
||||
newdata->filesize = st.st_size;
|
||||
newdata->mmaped = mmaped;
|
||||
newdata->usage_count = 0;
|
||||
newdata->nstrings = _nl_category_num_items[category];
|
||||
newdata->nstrings = filedata->nstrings;
|
||||
for (cnt = 0; cnt < newdata->nstrings; ++cnt)
|
||||
{
|
||||
off_t idx = filedata->strindex[cnt];
|
||||
|
Reference in New Issue
Block a user