limine-install: Fix broken argc comparison

This commit is contained in:
mintsuki 2021-12-23 20:56:09 +01:00
parent d948b6e98e
commit e70f48c978
1 changed files with 1 additions and 1 deletions

View File

@ -459,7 +459,7 @@ int main(int argc, char *argv[]) {
uint64_t stage2_loc_b = stage2_loc_a + stage2_size_a;
if (gpt) {
if (argc > 3) {
if (argc >= 3) {
uint32_t partition_num;
sscanf(argv[2], "%" SCNu32, &partition_num);
partition_num--;