File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
branches/snap-stage3/src/libstd Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: 31b77aecfc195c774852965329b5e75453eee0b2
4
+ refs/heads/snap-stage3: 2dd3c44a566537ef3f45e62e04148d61ab3cfd85
5
5
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
Original file line number Diff line number Diff line change @@ -87,9 +87,8 @@ pub fn getcwd() -> Path {
87
87
88
88
// FIXME: move these to str perhaps? #2620
89
89
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 ] ;
93
92
do buf. as_mut_buf |b, sz| {
94
93
if f ( b, sz as size_t ) {
95
94
unsafe {
You can’t perform that action at this time.
0 commit comments