buffer bounds: correct > - >= error for bounds check (Coverity CID 1511 NetBSD Scan 5)
This commit is contained in:
parent
99c0e2540c
commit
630d3f115c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue