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) {