]> diplodocus.org Git - nmh/commit
fmttest.c: Clear output buffer after each write.
authorRalph Corderoy <ralph@inputplus.co.uk>
Wed, 22 Nov 2017 15:12:11 +0000 (15:12 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Wed, 22 Nov 2017 15:14:29 +0000 (15:14 +0000)
commit1670e4d1af608291d93f02e74c57b6aef69a83ad
tree342ce817756dc6e230c9cd59ee1218e15a4f59cd
parenta034d7e5edab2f0d56a62f6e1fcbbc76f3e5f31b
fmttest.c: Clear output buffer after each write.

Otherwise each write outputs the whole buffer again, including what's
already appeared.  Instead of the three lines 1, 2, 3, one sees 1, 1, 2,
1, 2, 3.
uip/fmttest.c