From 64c9e8aabcfd95ed75d6c23c8b1d1f8a2e0db9ca Mon Sep 17 00:00:00 2001 From: Mukund Sivaraman Date: Sat, 6 Sep 2008 07:26:25 +0000 Subject: [PATCH] (win32) Stack smash test fails with too much depth on win32 --- libtransmission/bencode-test.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/libtransmission/bencode-test.c b/libtransmission/bencode-test.c index bc330c4ca..9790be383 100644 --- a/libtransmission/bencode-test.c +++ b/libtransmission/bencode-test.c @@ -340,18 +340,16 @@ testJSON( void ) } static int -testStackSmash( void ) +testStackSmash( int depth ) { int i; int len; - int depth; int err; uint8_t * in; const uint8_t * end; tr_benc val; char * saved; - depth = 1000000; in = tr_new( uint8_t, depth*2 + 1 ); for( i=0; i