]> git.saurik.com Git - wxWidgets.git/commitdiff
don't allocate a too big buffer on stack
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 12 Oct 2008 20:57:19 +0000 (20:57 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 12 Oct 2008 20:57:19 +0000 (20:57 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56253 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/net/socket.cpp

index 9145c276be68c6a4c827bb91dc57714ee21519df..e77ff20abaf98842340cd08805d88be988d65f68 100644 (file)
@@ -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() );