1
0
mirror of https://github.com/cclassic/model-ghdl synced 2024-11-21 08:25:05 +01:00

Changed buffer realloc size for file names in vcom.

This commit is contained in:
Markus Koch 2016-05-08 12:45:14 +02:00
parent 37b4af2913
commit fdf04cb659

2
main.c
View File

@ -375,7 +375,7 @@ int vcom(int argc, char **argv)
append_string(&params, argv[i]);
}
else if (argv[i][0] != '-'){ // VHDL file
slen += strlen(argv[i]) + 1;
slen += strlen(argv[i]) + 2;
files = realloc(files, slen * sizeof(char));
strcat(files, " ");
strcat(files, argv[i]);