diff options
Diffstat (limited to 'locale/programs/ld-address.c')
-rw-r--r-- | locale/programs/ld-address.c | 3 |
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")); |