Clean up snprintf and buffer size (less sloppy).