[X2Go-Commits] [nx-libs] 114/219: Keyboard.c: use existing define instead of hardcoced value

git-admin at x2go.org git-admin at x2go.org
Sat Sep 28 12:10:33 CEST 2019


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch 3.6.x
in repository nx-libs.

commit 364035c00258c17924174dac7921b5a8e68e6459
Author: Ulrich Sibiller <uli42 at gmx.de>
Date:   Fri Jun 21 11:39:03 2019 +0200

    Keyboard.c: use existing define instead of hardcoced value
---
 nx-X11/programs/Xserver/hw/nxagent/Keyboard.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c b/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
index 8ff4528a1..4952c0197 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
@@ -553,7 +553,7 @@ void nxagentChangeKeyboardControl(DeviceIntPtr pDev, KeybdCtrl *ctrl)
 
     value_mask = KBLed | KBLedMode;
 
-    for (int i = 1; i <= 32; i++)
+    for (int i = 1; i <= XkbNumIndicators; i++)
     {
       unsigned int mask = (unsigned int)1 << (i - 1);
       values.led = i;

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/nx-libs.git


More information about the x2go-commits mailing list