diff options
Diffstat (limited to 'src/matrix_http_esp32.c')
| -rw-r--r-- | src/matrix_http_esp32.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |
