ref: 28c435e97cdf2adbd3bf9f75f879f42b47fee737
parent: 2ec6b23c4ef94a452996573cc79da96e05a96cc0
author: Ori Bernstein <[email protected]>
date: Wed Dec 18 09:55:42 EST 2013
Use bfmt() correctly.
--- a/bio.myr
+++ b/bio.myr
@@ -386,8 +386,10 @@
*/
const put = {f, fmt, args
var buf : byte[2048]
+ var n
- -> write(f, std.bfmt(buf[:], fmt, std.vastart(&args)))
+ n = std.bfmt(buf[:], fmt, std.vastart(&args))
+ -> write(f, buf[:n])
}
/*