From 630d3f115c4a77fce758b640e69e0ebcfdb39a97 Mon Sep 17 00:00:00 2001 From: kardel Date: Sat, 18 Mar 2006 14:08:29 +0000 Subject: [PATCH] buffer bounds: correct > - >= error for bounds check (Coverity CID 1511 NetBSD Scan 5) --- dist/ntp/ntpd/refclock_leitch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/ntp/ntpd/refclock_leitch.c b/dist/ntp/ntpd/refclock_leitch.c index 424de2c67966..a1dedafce1dd 100644 --- a/dist/ntp/ntpd/refclock_leitch.c +++ b/dist/ntp/ntpd/refclock_leitch.c @@ -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; }