aboutsummaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/misc.c b/misc.c
index 917958a..734ca5d 100644
--- a/misc.c
+++ b/misc.c
@@ -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);
}