X-Git-Url: https://gitweb.ps.run/matrix_esp_thesis/blobdiff_plain/8ceca98f04b88798794748572fce184b92144d2d..0326538d115050abe9a57c7517715ab5642d85eb:/src/matrix_http_esp32.c diff --git a/src/matrix_http_esp32.c b/src/matrix_http_esp32.c index 3faf9f5..874afd8 100644 --- a/src/matrix_http_esp32.c +++ b/src/matrix_http_esp32.c @@ -98,6 +98,7 @@ esp_err_t _http_event_handler(esp_http_client_event_t *evt) copy_len = MIN(evt->data_len, (hc->dataCap - hc->dataLen)); if (copy_len) { memcpy(hc->data + hc->dataLen, evt->data, copy_len); + hc->data[hc->dataLen + copy_len] = '\0'; } hc->dataLen += copy_len;