aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/vidcontrol
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2001-04-21 13:50:32 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2001-04-21 13:50:32 +0000
commite4ef2fa23434f985e49db2dff2bbd4c9426bb2a5 (patch)
treee7d34374e5f3ed98f63c2f42cc219598cbeab385 /usr.sbin/vidcontrol
parentad6931f9544c3f7a6d9dc3b4813130e2277204d2 (diff)
Notes
Diffstat (limited to 'usr.sbin/vidcontrol')
-rw-r--r--usr.sbin/vidcontrol/vidcontrol.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/vidcontrol/vidcontrol.c b/usr.sbin/vidcontrol/vidcontrol.c
index 24ef988bbbaa..55164623a105 100644
--- a/usr.sbin/vidcontrol/vidcontrol.c
+++ b/usr.sbin/vidcontrol/vidcontrol.c
@@ -488,8 +488,8 @@ set_mouse_char(char *arg)
long l;
l = strtol(arg, NULL, 0);
- if ((l < 0) || (l > UCHAR_MAX)) {
- warnx("argument to -M must be 0 through %d", UCHAR_MAX);
+ if ((l < 0) || (l > UCHAR_MAX - 3)) {
+ warnx("argument to -M must be 0 through %d", UCHAR_MAX - 3);
return;
}
mouse.operation = MOUSE_MOUSECHAR;