From 4b3814d6e9aab31a6daf8439a7f25e3655ae2acc Mon Sep 17 00:00:00 2001 From: Rafael Caricio Date: Sun, 12 Apr 2020 21:18:07 +0200 Subject: [PATCH] Null terminated string in demo --- examples/demo/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/demo/src/main.rs b/examples/demo/src/main.rs index 785da1c..92bcd5e 100644 --- a/examples/demo/src/main.rs +++ b/examples/demo/src/main.rs @@ -69,7 +69,7 @@ fn main() -> Result<(), String> { button.set_size(250, 50); let mut label = lvgl::Label::new(&mut button); - label.set_text("Hello Mundo!"); + label.set_text("Hello Mundo!\0"); let mut event_pump = sdl_context.event_pump()?; 'running: loop {