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:
commit
5a2ecb828b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue