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:
parent
37b4af2913
commit
fdf04cb659
2
main.c
2
main.c
@ -375,7 +375,7 @@ int vcom(int argc, char **argv)
|
|||||||
append_string(¶ms, argv[i]);
|
append_string(¶ms, 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]);
|
||||||
|
Loading…
Reference in New Issue
Block a user