ref: 755f0be63055887635f1675ae33f8992c38e6881
parent: ddff3ee8120284a2da46b3bcfeb366949b1c07d2
author: Ori Bernstein <[email protected]>
date: Mon Oct 28 11:51:07 EDT 2013
Fix compile against most recent version of Myrddin.
--- a/bio.myr
+++ b/bio.myr
@@ -91,7 +91,7 @@
Creates a file for the provided path, with opened in
the requested mode, with the requested permissions
*/
-const createfile = {path, mode, perm
+const create = {path, mode, perm
var openmode
var fd
@@ -384,11 +384,8 @@
*/
const put = {f, fmt, args
var buf : byte[2048]
- var len
- std.fmt(buf, fmt, valist(args))
- len = write(f, buf)
- -> write(f, buf[:len])
+ -> write(f, std.fmt(buf[:], fmt, std.vastart(&args)))
}
/*