os: fix file.writeln(s) too, where s contains `0` bytes
parent
3b067f5f85
commit
bae9ed0350
|
@ -56,7 +56,7 @@ pub fn (mut f File) writeln(s string) {
|
|||
}
|
||||
*/
|
||||
// TODO perf
|
||||
C.fputs(s.str, f.cfile)
|
||||
C.fwrite(s.str, s.len, 1, f.cfile)
|
||||
C.fputs('\n', f.cfile)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue