diff options
Diffstat (limited to 'src/ascii.c')
| -rw-r--r-- | src/ascii.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ascii.c b/src/ascii.c index b47b400..0a2dc67 100644 --- a/src/ascii.c +++ b/src/ascii.c @@ -34,7 +34,7 @@ static const struct ascii_mapping_t ascii_mappings[] = const char* get_ascii_name(const struct ascii_mapping_t *d_map, int art) { - if (art > MAX_LOGOS) { + if (art >= MAX_LOGOS) { fprintf(stderr, "get_ascii_path: index out of bounce\n"); fprintf(stderr, "Get default ascii art.\n"); art = 0; |
