167ea27b4f
Also, snprinf is guaranteed by the new ansi standard to NUL terminate the string, so we don't need to do that ourselves.