diff --git a/GRUB2/MOD_SRC/grub-2.04/grub-core/commands/search.c b/GRUB2/MOD_SRC/grub-2.04/grub-core/commands/search.c index 3852c0c7..ae087b5c 100644 --- a/GRUB2/MOD_SRC/grub-2.04/grub-core/commands/search.c +++ b/GRUB2/MOD_SRC/grub-2.04/grub-core/commands/search.c @@ -66,7 +66,7 @@ iterate_device (const char *name, void *data) int found = 0; /* Skip floppy drives when requested. */ - if (ctx->no_floppy && + if (ctx->no_floppy && strlen(name) > 2 && name[0] == 'f' && name[1] == 'd' && name[2] >= '0' && name[2] <= '9') return 1;