[4257] in Athena Bugs

home help back first fref pref prev next nref lref last post

RT 6.4R: more uses ret val of printf

daemon@ATHENA.MIT.EDU (Jonathan I. Kamens)
Sun Feb 18 23:49:10 1990

Date: Sun, 18 Feb 90 23:48:36 -0500
From: Jonathan I. Kamens <jik@PIT-MANAGER.MIT.EDU>
To: bugs@ATHENA.MIT.EDU

  The source code for /usr/ucb/more uses the return value of printf()
to increment a counter in several places.

  As I've already reported, on the RT in 6.4R, none of the *printf
functions return the correct value (i.e. the length of the formatted
string).  Therefore, the code in more won't work.  I'm not sure how it
will break, or even if it will break in any way that we'll notice, but
it's still a bug.

  I point this out only in case for some reason we don't fix _doprnt
(I've already sent in a fix for it) to return the corret value.  In
that case, we'll have to modify more to do the right thing on the RT.

  jik

home help back first fref pref prev next nref lref last post