Path: utzoo!attcan!uunet!mcsun!ukc!edcastle!aiai!richard From: richard@aiai.ed.ac.uk (Richard Tobin) Newsgroups: comp.os.minix Subject: Bug in estdio Message-ID: <3500@skye.ed.ac.uk> Date: 9 Oct 90 17:16:19 GMT Reply-To: richard@aiai.UUCP (Richard Tobin) Organization: AIAI, University of Edinburgh, Scotland Lines: 28 I'm posting this here because (a) it's likely to affect some Minix users and (b) I can't find Earl Chew's mail address. In _f_cvt.c at line 458: /* Convert exponent */ if (fracfill != 0 && (fflag & F_FPFORMATE)) { fv[++fvx].att = FV_F_PADDING; fv[fvx].len = fracfill; fv[fvx].arg = __zfill; fv[++fvx].len = FV_F_VECTOR; <------- WRONG fv[fvx].len = 0; fv[fvx].arg = bp; } The assignment should be fv[++fvx].att = FV_F_VECTOR; The symptom of this bug is that occasionally e-format numbers will print as 3.14159eeee (actually, that's just the symptom I got, others may be possible). -- Richard -- Richard Tobin, JANET: R.Tobin@uk.ac.ed AI Applications Institute, ARPA: R.Tobin%uk.ac.ed@nsfnet-relay.ac.uk Edinburgh University. UUCP: ...!ukc!ed.ac.uk!R.Tobin