facebookarchive / RakNet

RakNet is a cross platform, open source, C++ networking engine for game programmers.
Other
3.3k stars 1.02k forks source link

RakString bug with long strings on Linux #79

Open DareM-A0 opened 8 years ago

DareM-A0 commented 8 years ago

Function RakString::Assign doesn't handle long string well on Linux version.

There are 2 calls to function _vsnprintf. First one is followed by ... #ifndef _WIN32, but second one isn't.

I believe this will cause RakString::Assign to produce wrong result on long strings in Linux version (strings longer than 512 chars).

larku commented 8 years ago

Hey DareM-A0,

Do you have a fix for this that I can add to my community (larku) fork?