about summary refs log tree commit diff
path: root/locale/loadlocale.c
diff options
context:
space:
mode:
Diffstat (limited to 'locale/loadlocale.c')
-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);