1
0
mirror of https://github.com/cclassic/model-ghdl synced 2024-11-29 09:13:28 +01:00

Changed buffer realloc size for file names in vcom.

This commit is contained in:
Makise Kurisu 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]); append_string(&params, argv[i]);
} }
else if (argv[i][0] != '-'){ // VHDL file else if (argv[i][0] != '-'){ // VHDL file
slen += strlen(argv[i]) + 1; slen += strlen(argv[i]) + 2;
files = realloc(files, slen * sizeof(char)); files = realloc(files, slen * sizeof(char));
strcat(files, " "); strcat(files, " ");
strcat(files, argv[i]); strcat(files, argv[i]);