Fix potential out of bounds error in Wine check

This commit is contained in:
Robbert van der Helm
2020-07-19 19:08:01 +02:00
parent 6f9eb19969
commit 9abaf60008
+1 -1
View File
@@ -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);
}
}