fix type check in pccard_beep_select

This commit is contained in:
MIHIRA Sanpei Yoshiro 2000-11-01 00:37:34 +00:00
parent 26b5d23688
commit d4479fc128
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ int pccard_beep_select(int type)
if (type == 0) {
allow_beep = BEEP_OFF;
melody_type = 0;
} else if (type < 0 || type > MAX_TONE_MODE)
} else if (type < 0 || MAX_TONE_MODE - 1 < type)
errcode = 1;
else {
allow_beep = BEEP_ON;