aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/Keystroke.c
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2020-01-04 15:33:27 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-01-06 00:50:30 +0100
commite276b23b39258e692bebb04c4f892cf6437ed022 (patch)
tree21ba20e7b0bec1a4512147f534c9745e6fbc781f /nx-X11/programs/Xserver/hw/nxagent/Keystroke.c
parent14aab54f471169a73ec8df956793d9169f96ac2d (diff)
downloadnx-libs-e276b23b39258e692bebb04c4f892cf6437ed022.tar.gz
nx-libs-e276b23b39258e692bebb04c4f892cf6437ed022.tar.bz2
nx-libs-e276b23b39258e692bebb04c4f892cf6437ed022.zip
Keystroke.c: fix formatting of keystrokes
used the wrong macro for length determination
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Keystroke.c')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Keystroke.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Keystroke.c b/nx-X11/programs/Xserver/hw/nxagent/Keystroke.c
index b6d8f5817..ea139b10f 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Keystroke.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Keystroke.c
@@ -432,7 +432,7 @@ void nxagentDumpKeystrokes(void)
{
int maxlen = 0;
for (int i = 0; nxagentSpecialKeystrokeNames[i]; i++)
- maxlen = min(maxlen, strlen(nxagentSpecialKeystrokeNames[i]));
+ maxlen = max(maxlen, strlen(nxagentSpecialKeystrokeNames[i]));
fprintf(stderr, "Currently known keystrokes:\n");