* locale/loadlocale.c (_nl_load_locale): Allow index of entry in
file be equal to file size.
1999-11-22 Ulrich Drepper <drepper@cygnus.com>
+ * locale/loadlocale.c (_nl_load_locale): Allow index of entry in
+ file be equal to file size.
+
* stdlib/longlong.h: Add count_trailing_zeros back.
* stdlib/longlong.h: Update from latest egcs version.
for (cnt = 0; cnt < newdata->nstrings; ++cnt)
{
off_t idx = filedata->strindex[cnt];
- if (idx >= newdata->filesize)
+ if (idx > newdata->filesize)
{
free (newdata);
__set_errno (EINVAL);