summaryrefslogtreecommitdiff
path: root/locale
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2006-05-05 14:50:16 +0000
committerJakub Jelinek <jakub@redhat.com>2006-05-05 14:50:16 +0000
commit262cf6b3df91d5bb7cbdcae2390333b21e8008d5 (patch)
treee08285b4eb00fcd3b961f02426120607e17d7ca7 /locale
parent3f898a85fc15daad530ca7db852e7d724e3914b5 (diff)
Updated to fedora-glibc-20060505T1443cvs/fedora-glibc-2_4_90-6
Diffstat (limited to 'locale')
-rw-r--r--locale/programs/ld-address.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/locale/programs/ld-address.c b/locale/programs/ld-address.c
index 83cd9fa17b..dac8551071 100644
--- a/locale/programs/ld-address.c
+++ b/locale/programs/ld-address.c
@@ -237,7 +237,8 @@ No definition for %s category found"), "LC_ADDRESS"));
WITH_CUR_LOCALE (error (0, 0, _("%s: field `%s' must not be empty"),
"LC_ADDRESS", "lang_ab"));
}
- else if (iso639[cnt].ab[0] == '\0')
+ else if (cnt < sizeof (iso639) / sizeof (iso639[0])
+ && iso639[cnt].ab[0] == '\0')
{
WITH_CUR_LOCALE (error (0, 0, _("%s: field `%s' must not be defined"),
"LC_ADDRESS", "lang_ab"));