summaryrefslogtreecommitdiffstats
path: root/usr.sbin/fdformat/fdformat.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1994-02-10 01:20:28 +0000
committerache <ache@FreeBSD.org>1994-02-10 01:20:28 +0000
commitfd0d75862b476e4c07722caa0718ceed50d3c1aa (patch)
treefb008dd21dc3aec887edbe8bc0d8535ff82548d4 /usr.sbin/fdformat/fdformat.c
parent2ac095726f087c9cec2cf3a601c69bfa46f77ac6 (diff)
downloadFreeBSD-src-fd0d75862b476e4c07722caa0718ceed50d3c1aa.zip
FreeBSD-src-fd0d75862b476e4c07722caa0718ceed50d3c1aa.tar.gz
Fix size of il (interleave) array.
Diffstat (limited to 'usr.sbin/fdformat/fdformat.c')
-rw-r--r--usr.sbin/fdformat/fdformat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/fdformat/fdformat.c b/usr.sbin/fdformat/fdformat.c
index dc8fba8..d0b7862 100644
--- a/usr.sbin/fdformat/fdformat.c
+++ b/usr.sbin/fdformat/fdformat.c
@@ -55,7 +55,7 @@ format_track(int fd, int cyl, int secs, int head, int rate,
{
struct fd_formb f;
register int i,j;
- int il[FD_MAX_NSEC];
+ int il[FD_MAX_NSEC + 1];
memset(il,0,sizeof il);
for(j = 0, i = 1; i <= secs; i++) {
OpenPOWER on IntegriCloud