Fix a typo, unbreak the world.

Thanks to:	mux
Approved by:	ru
This commit is contained in:
maxim 2002-03-06 12:28:51 +00:00
parent d9b8621133
commit 62ffd8f69e

View File

@ -486,7 +486,7 @@ __semctl(td, uap)
mtx_lock(&Giant);
switch(cmd) {
case SEM_STAT:
if (semid < 0 || semid >= seminfo.semnmi)
if (semid < 0 || semid >= seminfo.semmni)
UGAR(EINVAL);
semaptr = &sema[semid];
if ((semaptr->sem_perm.mode & SEM_ALLOC) == 0 )