diff --git a/dump1090.c b/dump1090.c index 00d907f..5642070 100644 --- a/dump1090.c +++ b/dump1090.c @@ -793,7 +793,7 @@ int main(int argc, char **argv) { #ifndef _WIN32 } else if (!strcmp(argv[j], "--write-json") && more) { ++j; - Modes.json_path = malloc(strlen(argv[j]) + 11); + Modes.json_path = malloc(strlen(argv[j]) + 15); strcpy(Modes.json_path, argv[j]); strcat(Modes.json_path, "/aircraft.json"); } else if (!strcmp(argv[j], "--write-json-every") && more) {