These should all be snprintf.