From 4c035d43fbb53313ff430083064739451e90d7a4 Mon Sep 17 00:00:00 2001 From: "Morgan 'ARR\\!' Allen" Date: Sun, 26 Apr 2020 13:21:05 -0700 Subject: [PATCH] causes heap curruption, probably should include - 1 --- main/lorcomm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/lorcomm.c b/main/lorcomm.c index 90ff05c..02b189f 100644 --- a/main/lorcomm.c +++ b/main/lorcomm.c @@ -67,8 +67,8 @@ void lorcomm_handle_receive(uint8_t size) { // if the msg doesnt end in NULL it's probably already corrupt // just go ahead and terminate it - if(msg->msg[msg->length] != '\0') - msg->msg[msg->length] = '\0'; + //if(msg->msg[msg->length] != '\0') + //msg->msg[msg->length] = '\0'; ESP_LOGI(TAG, "msg (len: %d): %s", msg->length, msg->msg);