It's the small things that matter

- Properly null-terminate with the guarentee that the string will not be truncated.
- Fix 2 warnings about integer sizes passed to printf.