Increase local file buffer size in mg_http_upload()

This commit is contained in:
Sergey Lyubka committed 2024-03-02 10:56:06 +00:00
1 parent 00db56f7d7
commit 309668ccbc
3 files changed
+7 -3

No files matched your search

+1 -1
View File
@@ -919,7 +919,7 @@ bool mg_http_match_uri(const struct mg_http_message *hm, const char *glob) {
long mg_http_upload(struct mg_connection *c, struct mg_http_message *hm,
struct mg_fs *fs, const char *dir, size_t max_size) {
char buf[20] = "0", file[40], path[MG_PATH_MAX];
char buf[20] = "0", file[MG_PATH_MAX], path[MG_PATH_MAX];
long res = 0, offset;
mg_http_get_var(&hm->query, "offset", buf, sizeof(buf));
mg_http_get_var(&hm->query, "file", file, sizeof(file));