X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Fapp_test%2Fcaller.c;h=c72e0723a0b82862034992859d7cde4f9879000c;hb=ec88d3c0563eeb6ae5f73427edb0b3c4d7acf299;hp=7b7336a879ee2ed2d1c43196e6773636ba51d608;hpb=412d53dfa2f9b5b56a448797d0dfec3b0f11f666;p=ric-plt%2Flib%2Frmr.git diff --git a/test/app_test/caller.c b/test/app_test/caller.c index 7b7336a..c72e072 100644 --- a/test/app_test/caller.c +++ b/test/app_test/caller.c @@ -64,6 +64,7 @@ #include #define TRACE_SIZE 40 // bytes in header to provide for trace junk +#define WBUF_SIZE 1024 /* Thread data @@ -108,13 +109,15 @@ static void* mk_calls( void* data ) { int drops = 0; int fail_count = 0; // # of failure sends after first successful send int successful = 0; // set to true after we have a successful send - char wbuf[1024]; + char* wbuf = NULL; char xbuf[1024]; // build transaction string here char trace[1024]; int xaction_id = 1; char* tok; int state = 0; + wbuf = (char *) malloc( sizeof( char ) * WBUF_SIZE ); + if( (control = (tdata_t *) data) == NULL ) { fprintf( stderr, "thread data was nil; bailing out\n" ); }