Example restful_server : Minor fix in copying file system base path

pull/3627/head^2
Anurag Kar 2019-06-10 18:02:45 +05:30 zatwierdzone przez bot
rodzic 065eb918fd
commit a012025deb
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -172,7 +172,7 @@ esp_err_t start_rest_server(const char *base_path)
REST_CHECK(base_path, "wrong base path", err);
rest_server_context_t *rest_context = calloc(1, sizeof(rest_server_context_t));
REST_CHECK(rest_context, "No memory for rest context", err);
strncpy(rest_context->base_path, base_path, ESP_VFS_PATH_MAX);
strlcpy(rest_context->base_path, base_path, sizeof(rest_context->base_path));
httpd_handle_t server = NULL;
httpd_config_t config = HTTPD_DEFAULT_CONFIG();