diff options
Diffstat (limited to 'misc.c')
| -rw-r--r-- | misc.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -412,7 +412,9 @@ char *button2label(int button) ('a' <= button && button <= 'z') || ('0' <= button && button <= '9') ) { - char str[2] = { button, '\0' }; + char str[2]; + str[0] = button; + str[1] = '\0'; return dupstr(str); } |