buffer bounds: correct > - >= error for bounds check (Coverity CID 1511 NetBSD Scan 5)

This commit is contained in:
kardel 2006-03-18 14:08:29 +00:00
parent 99c0e2540c
commit 630d3f115c
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: refclock_leitch.c,v 1.2 2003/12/04 16:23:37 drochner Exp $ */
/* $NetBSD: refclock_leitch.c,v 1.3 2006/03/18 14:08:29 kardel Exp $ */
/*
* refclock_leitch - clock driver for the Leitch CSD-5300 Master Clock
@ -168,7 +168,7 @@ leitch_poll(
if (debug)
fprintf(stderr, "leitch_poll()\n");
#endif
if (unit > MAXUNITS) {
if (unit >= MAXUNITS) {
/* XXXX syslog it */
return;
}