There is no guarantee, on snprintf()'s failure, that it won't have written content to the array.
It would be better to check its return value ...
... but, as noted, this is all pre-existing.