We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e8756c commit 24abc39Copy full SHA for 24abc39
src/sys/dgpu.rs
@@ -74,7 +74,7 @@ impl Device {
74
.open(self.path.as_path().join("dgpu_power"))
75
.context(ErrorKind::DeviceAccess)?;
76
77
- let mut buf = [0; 4];
+ let mut buf = [0; 5];
78
let len = file.read(&mut buf).context(ErrorKind::Io)?;
79
let len = std::cmp::min(len + 1, buf.len());
80
0 commit comments