mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-02 13:20:51 +00:00
Fix #1211 - adjust ESP32 example to serve FS
This commit is contained in:
1 parent
6827972f71
commit
457d76b049
12 files changed
+179
-123
No files matched your search
+1
-1
@@ -34,7 +34,7 @@ char *mg_file_read(const char *path) {
|
||||
bool mg_file_write(const char *path, const void *buf, size_t len) {
|
||||
bool result = false;
|
||||
FILE *fp;
|
||||
char tmp[PATH_MAX];
|
||||
char tmp[MG_PATH_MAX];
|
||||
snprintf(tmp, sizeof(tmp), "%s.%d", path, rand());
|
||||
fp = fopen(tmp, "wb");
|
||||
if (fp != NULL) {
|
||||
|
||||
Reference in new issue
Block a user