Code that should print the string "hi", but prints "hi\0bye" instead