summaryrefslogtreecommitdiffstats
path: root/src/image.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/image.c b/src/image.c
index 5f86e3b..994e3d0 100644
--- a/src/image.c
+++ b/src/image.c
@@ -540,7 +540,7 @@ enum image_type image_type_from_string(const char * type) {
const char * image_type_to_string(enum image_type type) {
- if ( type > sizeof(image_types)/sizeof(image_types[0]) )
+ if ( type >= sizeof(image_types)/sizeof(image_types[0]) )
return NULL;
return image_types[type];