mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-09 20:29:10 +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
|
// Ignore fixme messages here, since those can be produced by wineserver even after the
|
||||||
// application has errored out
|
// application has errored out
|
||||||
if &line[5..10] != "fixme" {
|
if line.get(5..10) != Some("fixme") {
|
||||||
last_error = Some(line);
|
last_error = Some(line);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user