fix: The error message incorrectly references argv[1] (input file) instead of argv[2] (output file)
The error message incorrectly references argv[1] (input file) instead of argv[2] (output file)
This commit is contained in:
parent
dc5d94be02
commit
4a5b769c93
|
|
@ -86,13 +86,13 @@ int main(int argc, char **argv) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if(sf_write_float(outf, mpx_buffer, LENGTH) != LENGTH) {
|
if(sf_write_float(outf, mpx_buffer, LENGTH) != LENGTH) {
|
||||||
fprintf(stderr, "Error: writing to file %s.\n", argv[1]);
|
fprintf(stderr, "Error: writing to file %s.\n", argv[2]);
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(sf_close(outf) ) {
|
if(sf_close(outf) ) {
|
||||||
fprintf(stderr, "Error: closing file %s.\n", argv[1]);
|
fprintf(stderr, "Error: closing file %s.\n", argv[2]);
|
||||||
}
|
}
|
||||||
|
|
||||||
fm_mpx_close();
|
fm_mpx_close();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue