Fix array size check at maxicode.c:420

Replaces explicit lengths with a compile-time calculation.