From 62a7f26289a757cfa4347c86573d970be692f950 Mon Sep 17 00:00:00 2001 From: Chris Teubert Date: Wed, 29 Apr 2015 16:26:12 -0700 Subject: [PATCH] getDREFS array should be 2d --- TestScripts/C Tests/main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/TestScripts/C Tests/main.c b/TestScripts/C Tests/main.c index f147565..32ec81d 100644 --- a/TestScripts/C Tests/main.c +++ b/TestScripts/C Tests/main.c @@ -576,7 +576,11 @@ int psendPOSITest() // sendPOSI test // Execution 2 pauseSim(sock, 1); - float loc[3]; + float *loc[3]; + for(int i = 0; i < 3; ++i) + { + loc[i] = (float*)malloc(sizeof(float)); + } getDREFs(sock, drefs, &loc, 3, sizes); sendPOSI(sock, POSI, 7, 0); result = getDREFs(sock, drefs, data, 7, sizes);