Skip to content

Commit 5a2ecb8

Browse files
committed
auto merge of #13608 : tbu-/rust/pr_smallesthello, r=alexcrichton
It now hands `puts` a zero-terminated string, like it expects. Fix #13603.
2 parents 9d5082e + 031212b commit 5a2ecb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/run-pass/smallest-hello-world.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pub extern fn rust_stack_exhausted() {}
2626
#[no_split_stack]
2727
fn main(_: int, _: **u8) -> int {
2828
unsafe {
29-
let (ptr, _): (*u8, uint) = transmute("Hello!");
29+
let (ptr, _): (*u8, uint) = transmute("Hello!\0");
3030
puts(ptr);
3131
}
3232
return 0;

0 commit comments

Comments
 (0)