This commit is contained in:
okan 2008-06-14 21:59:09 +00:00
parent 9d9c61b8f6
commit 160228210b

2
conf.c
View File

@ -434,7 +434,7 @@ conf_mousebind(struct conf *c, char *name, char *binding)
if (strchr(name, '-') == NULL) if (strchr(name, '-') == NULL)
substring = name; substring = name;
current_binding->button = strtonum(substring); current_binding->button = strtonum(substring, 1, 3, &errstr);
if (errstr) if (errstr)
warnx("number of buttons is %s: %s", errstr, substring); warnx("number of buttons is %s: %s", errstr, substring);