fixed some typos that were introduced during the sprintf->snprintf changes