Added missing arguments to snprintf()