View | Details | Raw Unified | Return to bug 24437 | Differences between
and this patch

Collapse All | Expand All

(-)vidcontrol.c (-2 / +2 lines)
Lines 415-422 Link Here
415
	long l;
415
	long l;
416
416
417
	l = strtol(arg, NULL, 0);
417
	l = strtol(arg, NULL, 0);
418
	if ((l < 0) || (l > UCHAR_MAX)) {
418
	if ((l < 0) || (l > UCHAR_MAX - 3)) {
419
		warnx("argument to -M must be 0 through %d", UCHAR_MAX);
419
		warnx("argument to -M must be 0 through %d", UCHAR_MAX - 3);
420
		return;
420
		return;
421
	}
421
	}
422
	mouse.operation = MOUSE_MOUSECHAR;
422
	mouse.operation = MOUSE_MOUSECHAR;

Return to bug 24437