diff --git a/GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_plugin.c b/GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_plugin.c index 841327ae..b7152f9a 100644 --- a/GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_plugin.c +++ b/GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_plugin.c @@ -960,7 +960,7 @@ static int ventoy_plugin_parse_pwdstr(char *pwdstr, vtoy_password *pwd) return 1; } - if (len - 1 - (int)(long)(pos - pwdstr) != 32) + if (len - 1 - ((long)pos - (long)pwdstr) != 32) { if (NULL == pwd) grub_printf("Invalid md5 salt password format %s\n", pwdstr); return 1;