summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 3616470..e5c71ae 100644
--- a/src/main.c
+++ b/src/main.c
@@ -300,7 +300,7 @@ static const char * image_tmp[] = {
static const char * image_tmp_name(enum image_type type) {
- if ( type > sizeof(image_tmp)/sizeof(image_tmp[0]) )
+ if ( type >= sizeof(image_tmp)/sizeof(image_tmp[0]) )
return NULL;
if ( ! image_tmp[type] || ! image_tmp[type][0] )
@@ -1288,7 +1288,6 @@ int main(int argc, char **argv) {
}
-
}
}