Remove pstr_sprintf. Replace with snprintf.