mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 19:53:46 +00:00
Fix smallest-hello-world.rs interaction with puts
It now hands `puts` a zero-terminated string, like it expects. Fix #13603.
This commit is contained in:
parent
c44c7abb42
commit
031212bfd9
@ -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…
Reference in New Issue
Block a user