diff options
Diffstat (limited to 'FICS/variable.c')
-rw-r--r-- | FICS/variable.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/FICS/variable.c b/FICS/variable.c index c01e177..f9b0c3a 100644 --- a/FICS/variable.c +++ b/FICS/variable.c @@ -476,6 +476,8 @@ Language(unsigned int i) "Danish" }; + _Static_assert(ARRAY_SIZE(Lang) == 4, "Unexpected array size"); + if (i >= ARRAY_SIZE(Lang)) { warnx("%s: invalid arg %u (too large)", __func__, i); return Lang[0]; |