From 360673ed624866ffa8166ac98c38fbf29c06eb4e Mon Sep 17 00:00:00 2001 From: Vaxry Date: Fri, 5 Jul 2024 20:55:01 +0200 Subject: [PATCH] fix small ub in keyboard --- src/devices/IKeyboard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/IKeyboard.cpp b/src/devices/IKeyboard.cpp index 5325ab0a..125381ba 100644 --- a/src/devices/IKeyboard.cpp +++ b/src/devices/IKeyboard.cpp @@ -123,7 +123,7 @@ void IKeyboard::setKeymap(const SStringRuleNames& rules) { for (size_t i = 0; i < LEDNAMES.size(); ++i) { ledIndexes.at(i) = xkb_map_led_get_index(xkbKeymap, LEDNAMES.at(i)); - Debug::log(LOG, "xkb: LED index {} (name {}) got index {}", i, LEDNAMES.at(i), modIndexes.at(i)); + Debug::log(LOG, "xkb: LED index {} (name {}) got index {}", i, LEDNAMES.at(i), ledIndexes.at(i)); } for (size_t i = 0; i < MODNAMES.size(); ++i) {