From: Harlan Stenn Date: Thu, 30 Mar 2006 06:43:28 +0000 (-0500) Subject: [Bug 584] quiet a coverity buffer overrun X-Git-Tag: NTP_4_2_1P10_RC~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ddfc7d56c0cde6e5f0f26b89c38d29d26f30b43;p=thirdparty%2Fntp.git [Bug 584] quiet a coverity buffer overrun bk: 442b7e101DnoXHevtAzVD3l6uQVSqg --- diff --git a/ntpd/refclock_chu.c b/ntpd/refclock_chu.c index ccf00dd97..0cab8905f 100644 --- a/ntpd/refclock_chu.c +++ b/ntpd/refclock_chu.c @@ -1231,7 +1231,7 @@ chu_a( } i = -(2 * k); for (j = 0; j < nchar; j++) { - if (i < 0 || i > 19) { + if (i < 0 || i > 18) { i += 2; continue; }