From: Vadim Zeitlin Date: Sun, 12 Oct 2008 20:57:19 +0000 (+0000) Subject: don't allocate a too big buffer on stack X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3afc646cae92e38ae1b42dc5d0e932442dafe129 don't allocate a too big buffer on stack git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56253 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/tests/net/socket.cpp b/tests/net/socket.cpp index 9145c276be..e77ff20aba 100644 --- a/tests/net/socket.cpp +++ b/tests/net/socket.cpp @@ -141,7 +141,7 @@ void SocketTestCase::ReadNormal() CPPUNIT_ASSERT_EQUAL( WXSIZEOF(bufSmall), sock->LastCount() ); - char bufBig[1024*1024]; + char bufBig[102400]; sock->Read(bufBig, WXSIZEOF(bufBig)); CPPUNIT_ASSERT_EQUAL( wxSOCKET_NOERROR, sock->LastError() );