From 3654ebb36e2086ea7b18c6c79dccc963a3c06207 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Wed, 11 Nov 2020 18:38:38 +0100 Subject: [PATCH] tcpTest continued --- cube/User/Src/tcpTest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cube/User/Src/tcpTest.c b/cube/User/Src/tcpTest.c index f290239..cd01a7f 100644 --- a/cube/User/Src/tcpTest.c +++ b/cube/User/Src/tcpTest.c @@ -81,7 +81,7 @@ void tcpTestHandler(void *handle) { coloredMsg(LOG_YELLOW, "tth, getSn_RxMAX returns %d", s); if (s > 0) { - uint8_t buf = (uint8_t*) malloc(s); + uint8_t *buf = (uint8_t*) malloc(s); res32 = recv(TCPTEST_SOCK, buf, s); coloredMsg(LOG_YELLOW, "tth, recv returns 0x%02x", res32); if (res32 > 0) {