mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 03:50:11 +02:00
Fix potential out of bounds error in Wine check
This commit is contained in:
@@ -218,7 +218,7 @@ pub fn verify_wine_setup(config: &mut Config) -> Result<()> {
|
||||
|
||||
// Ignore fixme messages here, since those can be produced by wineserver even after the
|
||||
// application has errored out
|
||||
if &line[5..10] != "fixme" {
|
||||
if line.get(5..10) != Some("fixme") {
|
||||
last_error = Some(line);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user