But that's what we get for sticking with C and character arrays, instead of moving to at least C++ and std::string 
-f0dder
Hay, was that aimed at me...?

-Stoic Joker
Nah

I do wonder why a lot of people (especially in the opensource community *rolleyes*) are clinging on to C code with cryptic short identifiers, use of zero-terminated strings and str* functions, and more or less spaghetti code. There really isn't much excuse for this (the C part
can be justified if you need to be über-portable, but at least apply OOP principles and don't user str* functions, always pass buffer lengths, etc.)