Use 'snprintf()' instead of the unsafe variant