mirror of
https://github.com/ErikAndren/cue2pops-mac.git
synced 2025-04-19 15:38:04 +02:00
Correct string copy when passing two arguments
This commit is contained in:
parent
2ec80869cf
commit
e6ea357cb7
1 changed files with 5 additions and 1 deletions
|
@ -395,7 +395,11 @@ int main(int argc, char **argv)
|
|||
if(argc == 3) { // PROGRAM.EXE INPUT.CUE <CMD_1/OUTPUT>
|
||||
if (!EvaluateArg(argv[2])) {
|
||||
// else,argv[2] is the output file name
|
||||
strcpy(vcd_name, argv[2]);
|
||||
vcd_name = strdup(argv[2]);
|
||||
if (vcd_name == NULL) {
|
||||
printf("Error: Failed to copy destination string\n");
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue