Skip to content

Commit

Permalink
fix: correctly null-terminate strings in CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
Naxdy committed Oct 15, 2024
1 parent 3a3a9d6 commit dcdf9f1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "latency-slider-de"
version = "0.3.1"
version = "0.3.2"
authors = []
edition = "2021"

Expand Down
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,11 @@ unsafe fn draw_ui(root_pane: &Pane) {
} else if let (Some(x), Some(y)) = (vip_pane_00, vip_pane_01) {
let s = if !STEALTH_MODE {
if CURRENT_INPUT_BUFFER != -1 {
format!("Input Latency: {}", CURRENT_INPUT_BUFFER)
format!("Input Latency: {}\0", CURRENT_INPUT_BUFFER)
} else if MOST_RECENT_AUTO == -1 {
"Input Latency: Auto".to_string()
"Input Latency: Auto\0".to_string()
} else {
format!("Input Latency: Auto ({})", MOST_RECENT_AUTO)
format!("Input Latency: Auto ({})\0", MOST_RECENT_AUTO)
}
} else {
ORIG_VIP_TEXT.clone()
Expand Down

0 comments on commit dcdf9f1

Please sign in to comment.