Well, that was silly, fixed input not being null terminated, it helps when you are trying to get the length of it with strlen.