@@ -111,7 +111,7 @@ void stats_files(struct mg_connection *nc, struct http_message *hm, struct mg_st
111
111
return ;
112
112
}
113
113
114
- char disposition [8196 ];
114
+ char disposition [8192 ];
115
115
snprintf (disposition , sizeof (disposition ), "Content-Disposition: inline; filename=\"%s\"" , file );
116
116
117
117
char full_path [PATH_MAX ];
@@ -256,7 +256,7 @@ int serve_file_from_url(cJSON *json, index_t *idx, struct mg_connection *nc) {
256
256
257
257
const char * ext = cJSON_GetObjectItem (json , "extension" )-> valuestring ;
258
258
259
- char url [8196 ];
259
+ char url [8192 ];
260
260
snprintf (url , sizeof (url ),
261
261
"%s%s/%s%s%s" ,
262
262
idx -> desc .rewrite_url , path_unescaped , name_unescaped , strlen (ext ) == 0 ? "" : "." , ext );
@@ -291,7 +291,7 @@ void serve_file_from_disk(cJSON *json, index_t *idx, struct mg_connection *nc, s
291
291
292
292
LOG_DEBUGF ("serve.c" , "Serving file from disk: %s" , full_path )
293
293
294
- char disposition [8196 ];
294
+ char disposition [8192 ];
295
295
snprintf (disposition , sizeof (disposition ), "Content-Disposition: inline; filename=\"%s%s%s\"" ,
296
296
name , strlen (ext ) == 0 ? "" : "." , ext );
297
297
@@ -538,7 +538,7 @@ void tag(struct mg_connection *nc, struct http_message *hm, struct mg_str *path)
538
538
}
539
539
}
540
540
541
- char buf [8196 ];
541
+ char buf [8192 ];
542
542
snprintf (buf , sizeof (buf ),
543
543
"{"
544
544
" \"script\" : {"
@@ -558,7 +558,7 @@ void tag(struct mg_connection *nc, struct http_message *hm, struct mg_str *path)
558
558
} else {
559
559
cJSON_AddItemToArray (arr , cJSON_CreateString (arg_req -> name ));
560
560
561
- char buf [8196 ];
561
+ char buf [8192 ];
562
562
snprintf (buf , sizeof (buf ),
563
563
"{"
564
564
" \"script\" : {"
0 commit comments