From 6ae4c6218f223c680802e4c74382fcfd206e1a0d Mon Sep 17 00:00:00 2001 From: "Rodney W. Grimes" Date: Sun, 20 Feb 1994 15:41:59 +0000 Subject: From: phk@login.dkuug.dk (Poul-Henning Kamp) Message-Id: <9402201119.AA06430@login.dkuug.dk> Subject: bug in fdformat.c There is a bug in fdformat.c: the number of heads are hardcoded in two places. This is quite inconsequencial at present, but a bug nontheless. --- usr.sbin/fdformat/fdformat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.sbin/fdformat') diff --git a/usr.sbin/fdformat/fdformat.c b/usr.sbin/fdformat/fdformat.c index d0b786280cb0..b88a8ea7618d 100644 --- a/usr.sbin/fdformat/fdformat.c +++ b/usr.sbin/fdformat/fdformat.c @@ -324,9 +324,9 @@ main(int argc, char **argv) for (track = 0; track < fdt.tracks * fdt.heads; track++) { if (!verify_only) { - format_track(fd, track / 2, fdt.sectrac, track & 1, - fdt.trans, fdt.f_gap, fdt.secsize, fill, - fdt.f_inter); + format_track(fd, track / fdt.heads, fdt.sectrac, + track % fdt.heads, fdt.trans, fdt.f_gap, + fdt.secsize, fill, fdt.f_inter); if(!quiet && !((track + 1) % tracks_per_dot)) { putchar('F'); fflush(stdout); -- cgit v1.3