Skip to content

Commit 4801a0d

Browse files
committed
---
yaml --- r: 64657 b: refs/heads/snap-stage3 c: 2dd3c44 h: refs/heads/master i: 64655: 7a103c6 v: v3
1 parent 9f370a6 commit 4801a0d

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 31b77aecfc195c774852965329b5e75453eee0b2
4+
refs/heads/snap-stage3: 2dd3c44a566537ef3f45e62e04148d61ab3cfd85
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/libstd/os.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,8 @@ pub fn getcwd() -> Path {
8787

8888
// FIXME: move these to str perhaps? #2620
8989

90-
pub fn fill_charp_buf(f: &fn(*mut c_char, size_t) -> bool)
91-
-> Option<~str> {
92-
let mut buf = vec::from_elem(TMPBUF_SZ, 0u8 as c_char);
90+
pub fn fill_charp_buf(f: &fn(*mut c_char, size_t) -> bool) -> Option<~str> {
91+
let mut buf = [0 as c_char, .. TMPBUF_SZ];
9392
do buf.as_mut_buf |b, sz| {
9493
if f(b, sz as size_t) {
9594
unsafe {

0 commit comments

Comments
 (0)