Having unchecked buffers like this is just unacceptable. Like I said, sooner or later they overflow. What makes it even more unacceptable is the original code is correct and safe.

I don't see a point to changing it.