Remember to fill in new char's.

...we seriously need to use a standard <string>.

*glares at Yaniel*
This commit is contained in:
Jason Felds
2015-09-26 21:03:46 -04:00
parent d878a44a9b
commit 537af8d866
5 changed files with 30 additions and 16 deletions
@@ -651,6 +651,7 @@ void NetworkPostData::HttpThread()
{
sBuf.clear();
char * buffer = new char[1024];
std::fill(buffer, buffer + 1024, '\0');
int iGot = m_pStream->Read( static_cast<void *>(buffer), 1024 );
RString tmp = buffer;
delete[] buffer;