diff --git a/main/share/gb_file_temp.h b/main/share/gb_file_temp.h index 2d70d1443..72165a44d 100644 --- a/main/share/gb_file_temp.h +++ b/main/share/gb_file_temp.h @@ -603,7 +603,7 @@ mode_t FILE_mode_from_string(mode_t mode, const char *str) if (!c) break; - for (i = 0; i < 3; i++) + for (i = 0; i <= 3; i++) { test = d->test[i]; if (!test)