Updated snprintf format for safety (added format specifier)