about summary refs log tree commit diff
path: root/locale
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-11-23 05:25:22 +0000
committerUlrich Drepper <drepper@redhat.com>1999-11-23 05:25:22 +0000
commit99296d9dee7857d29ed05882a5cf404f27ae17d4 (patch)
tree773bb2881e8c1426d567c11501fa9e1e7bd641f4 /locale
parent62818cfd92d7b749399a48bdcaea7569f32efa62 (diff)
downloadglibc-99296d9dee7857d29ed05882a5cf404f27ae17d4.tar.gz
glibc-99296d9dee7857d29ed05882a5cf404f27ae17d4.tar.xz
glibc-99296d9dee7857d29ed05882a5cf404f27ae17d4.zip
Update.
	* locale/loadlocale.c (_nl_load_locale): Allow index of entry in
	file be equal to file size.
Diffstat (limited to 'locale')
-rw-r--r--locale/loadlocale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/locale/loadlocale.c b/locale/loadlocale.c
index 7b94a42d0a..0bb517ca44 100644
--- a/locale/loadlocale.c
+++ b/locale/loadlocale.c
@@ -189,7 +189,7 @@ _nl_load_locale (struct loaded_l10nfile *file, int category)
   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);