diff options
Diffstat (limited to 'src/image.c')
-rw-r--r-- | src/image.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/image.c b/src/image.c index a26a172..b5a7576 100644 --- a/src/image.c +++ b/src/image.c @@ -467,7 +467,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) ) + if ( type > sizeof(image_types)/sizeof(image_types[0]) ) return NULL; return image_types[type]; |