Add check to `snprintf()` returns