]> gitweb.ps.run Git - matrix_esp_thesis/blobdiff - src/matrix_http_esp32.c
delete OlmJS example
[matrix_esp_thesis] / src / matrix_http_esp32.c
index 3faf9f5dd1aef66e5881ceaf90cacd67f89d7e05..874afd81bdf97943c64978f0e8113248177e552b 100644 (file)
@@ -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;