diff options
| author | patrick-scho | 2023-10-15 14:11:51 +0200 |
|---|---|---|
| committer | patrick-scho | 2023-10-15 14:11:51 +0200 |
| commit | b231ec39ba5b9df6288a50204e5dabe9f591c830 (patch) | |
| tree | 51af5285e95ca548982f233cc7e15853920eeacf /src/matrix_http_esp32.c | |
| parent | 8ceca98f04b88798794748572fce184b92144d2d (diff) | |
| download | matrix_esp_thesis-b231ec39ba5b9df6288a50204e5dabe9f591c830.tar.gz matrix_esp_thesis-b231ec39ba5b9df6288a50204e5dabe9f591c830.zip | |
use global static buffers to save memory, get Verify example working on ESP32
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; |
