Switch to snprintf and sprintf in printf2

Signed-off-by: Mike Stitt <mikes@spindance.com>
Merge pull request #3 from spindance/bug/4314

Switch to snprintf and sprintf in printf2