I did nothing. Just made the buffer for 'path' bigger.
It is much faster and simpler with char* than it is with std::string.

NTC