about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/test/run-pass/smallest-hello-world.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/run-pass/smallest-hello-world.rs b/src/test/run-pass/smallest-hello-world.rs
index 65288cf0416..b95f0769d53 100644
--- a/src/test/run-pass/smallest-hello-world.rs
+++ b/src/test/run-pass/smallest-hello-world.rs
@@ -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;