1
Fork 0

auto merge of #13608 : tbu-/rust/pr_smallesthello, r=alexcrichton

It now hands `puts` a zero-terminated string, like it expects.

Fix #13603.
This commit is contained in:
bors 2014-04-18 23:36:33 -07:00
commit 5a2ecb828b

View file

@ -26,7 +26,7 @@ pub extern fn rust_stack_exhausted() {}
#[no_split_stack]
fn main(_: int, _: **u8) -> int {
unsafe {
let (ptr, _): (*u8, uint) = transmute("Hello!");
let (ptr, _): (*u8, uint) = transmute("Hello!\0");
puts(ptr);
}
return 0;