summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/computer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/computer.c b/modules/computer.c
index d0379b79..dd4961ec 100644
--- a/modules/computer.c
+++ b/modules/computer.c
@@ -326,7 +326,7 @@ static gchar *detect_machine_type(void)
};
int chassis_type = atoi(idle_free(chassis));
- if (chassis_type >= 0 && chassis_type <= G_N_ELEMENTS(types))
+ if (chassis_type >= 0 && chassis_type < G_N_ELEMENTS(types))
return g_strdup(_(types[chassis_type]));
}