Fix path buffer size
This commit is contained in:
parent
6910a4bf4d
commit
d0174994cb
|
@ -793,7 +793,7 @@ int main(int argc, char **argv) {
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
} else if (!strcmp(argv[j], "--write-json") && more) {
|
} else if (!strcmp(argv[j], "--write-json") && more) {
|
||||||
++j;
|
++j;
|
||||||
Modes.json_path = malloc(strlen(argv[j]) + 11);
|
Modes.json_path = malloc(strlen(argv[j]) + 15);
|
||||||
strcpy(Modes.json_path, argv[j]);
|
strcpy(Modes.json_path, argv[j]);
|
||||||
strcat(Modes.json_path, "/aircraft.json");
|
strcat(Modes.json_path, "/aircraft.json");
|
||||||
} else if (!strcmp(argv[j], "--write-json-every") && more) {
|
} else if (!strcmp(argv[j], "--write-json-every") && more) {
|
||||||
|
|
Loading…
Reference in a new issue