port-qmi: fix array bound check

There's an off-by-one error.
This commit is contained in:
Lubomir Rintel
2024-05-31 10:46:30 +00:00
committed by Aleksander Morgado
parent 5cdeea43da
commit 50937f5253
+1 -1
View File
@@ -1641,7 +1641,7 @@ check_data_format_combination (GTask *task)
/* go on to the next supported combination */
for (++ctx->data_format_combination_i;
ctx->data_format_combination_i <= (gint)G_N_ELEMENTS (data_format_combinations);
ctx->data_format_combination_i < (gint)G_N_ELEMENTS (data_format_combinations);
ctx->data_format_combination_i++) {
const DataFormatCombination *combination;
g_autofree gchar *kernel_data_mode_str = NULL;