Replace safesnprintf