Skip to content

Commit 13acf15

Browse files
committed
---
yaml --- r: 7798 b: refs/heads/snap-stage3 c: fec36de h: refs/heads/master v: v3
1 parent 65fcc81 commit 13acf15

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
refs/heads/master: 2898dcc5d97da9427ac367542382b6239d9c0bbf
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: a185b106471b4bc894393aecb31a23b71c8a4886
4+
refs/heads/snap-stage3: fec36de94e02e9c7c6fec05a2aea32bfbdc2f0f8
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/snap-stage3/src/libcore/str.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,16 +217,16 @@ Function: from_cstr
217217
Create a Rust string from a null-terminated C string
218218
*/
219219
unsafe fn from_cstr(cstr: sbuf) -> str {
220-
let res = "";
220+
let res = [];
221221
let start = cstr;
222222
let curr = start;
223223
let i = 0u;
224224
while *curr != 0u8 {
225-
push_byte(res, *curr);
225+
vec::push(res, *curr);
226226
i += 1u;
227227
curr = ptr::offset(start, i);
228228
}
229-
ret res;
229+
ret from_bytes(res);
230230
}
231231

232232
/*

0 commit comments

Comments
 (0)