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.
This commit is contained in:
Rodney W. Grimes 1994-02-20 15:41:59 +00:00
parent b5845fe05d
commit 6ae4c6218f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=1183

View File

@ -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);