What is an appropriate way of making this unsafe code safe?

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.