mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-09 16:21:45 +00:00
Fix warnings on newer versions of GCC
PUBLISHED_FROM=f1d25145446057fed9e8d634ca637364ca43a5e8
This commit is contained in:
1 parent
cdb8d7b692
commit
98c99279c3
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -7604,7 +7604,7 @@ static void mg_scan_directory(struct mg_connection *nc, const char *dir,
|
||||
const struct mg_serve_http_opts *opts,
|
||||
void (*func)(struct mg_connection *, const char *,
|
||||
cs_stat_t *)) {
|
||||
char path[MG_MAX_PATH];
|
||||
char path[MG_MAX_PATH + 1];
|
||||
cs_stat_t st;
|
||||
struct dirent *dp;
|
||||
DIR *dirp;
|
||||
|
||||
+1
-1
@@ -2026,7 +2026,7 @@ static void mg_scan_directory(struct mg_connection *nc, const char *dir,
|
||||
const struct mg_serve_http_opts *opts,
|
||||
void (*func)(struct mg_connection *, const char *,
|
||||
cs_stat_t *)) {
|
||||
char path[MG_MAX_PATH];
|
||||
char path[MG_MAX_PATH + 1];
|
||||
cs_stat_t st;
|
||||
struct dirent *dp;
|
||||
DIR *dirp;
|
||||
|
||||
Reference in new issue
Block a user