From 940fe9fd470a6ab4a96f637e24ce5d7477de9d99 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 5325ab0a3..125381bac 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) {