diff options
author | Thomas Adam <thomas@xteddy.org> | 2015-10-27 00:01:09 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2015-10-27 00:01:09 +0000 |
commit | 9c69a79f9ae14e3530ec50fcff32d57f0dd63aaf (patch) | |
tree | e9f9adce4a30b6048840528d7db94e9261809696 /key-string.c | |
parent | 54a3ed751e111833ca7f34563676d92f407709ce (diff) | |
parent | 640c6fdd5fd859cffecf461647440a437d25f879 (diff) | |
download | rtmux-9c69a79f9ae14e3530ec50fcff32d57f0dd63aaf.tar.gz rtmux-9c69a79f9ae14e3530ec50fcff32d57f0dd63aaf.tar.bz2 rtmux-9c69a79f9ae14e3530ec50fcff32d57f0dd63aaf.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'key-string.c')
-rw-r--r-- | key-string.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/key-string.c b/key-string.c index b6474c4f..88cd2a32 100644 --- a/key-string.c +++ b/key-string.c @@ -238,8 +238,10 @@ key_string_lookup_key(int key) } /* Invalid keys are errors. */ - if (key == 127 || key > 255) - return (NULL); + if (key == 127 || key > 255) { + snprintf(out, sizeof out, "<INVALID#%04x>", key); + return (out); + } /* Check for standard or control key. */ if (key >= 0 && key <= 32) { |