diff options
author | Pali Rohár <pali.rohar@gmail.com> | 2012-08-08 18:10:53 +0200 |
---|---|---|
committer | Pali Rohár <pali.rohar@gmail.com> | 2012-08-08 18:10:53 +0200 |
commit | b5828692080d87255f5b12424cc205654f0240b2 (patch) | |
tree | 27af833aaad9d9d675247d8c35bb8c1549e8fc64 /src/image.c | |
parent | dd2c6b7f18fc4a26c950e09c47af76eeb894cd68 (diff) | |
download | 0xFFFF-b5828692080d87255f5b12424cc205654f0240b2.tar.bz2 |
Added enum DEVICE_COUNT and IMAGE_COUNT, Added function device_to_long_string
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]; |