libcore: De-mode str

This commit is contained in:
Patrick Walton
2012-09-21 18:36:32 -07:00
parent 49af969e2c
commit d48396c986
19 changed files with 182 additions and 159 deletions

View File

@@ -104,7 +104,7 @@ fn readclose(fd: c_int) -> ~str {
let mut buf = ~"";
while !reader.eof() {
let bytes = reader.read_bytes(4096u);
str::push_str(buf, str::from_bytes(bytes));
str::push_str(&mut buf, str::from_bytes(bytes));
}
os::fclose(file);
return buf;