Open TruePikachu opened 10 years ago
A mistyped invocation for pmDJ can result in accidentially overwriting a .smd file with .mid data
pmDJ
pmDJ foo.smd bar.smd
bar.smd
foo.smd
pmDJ foo.smd bar.smd baz.mid
baz.mid
Solution would be to check the file extension on the argv[argc-1] argument.
argv[argc-1]
Quick note I'm not putting in the issue report proper, eventually, we might have pmDJ foo.mid bar.smd, so it might be beneficial to check all the file extensions and validate them.
pmDJ foo.mid bar.smd
A mistyped invocation for
pmDJ
can result in accidentially overwriting a .smd file with .mid datapmDJ foo.smd bar.smd
- Overwritesbar.smd
with MIDI data fromfoo.smd
pmDJ foo.smd bar.smd baz.mid
- (intended command) Writes MIDI data tobaz.mid
Solution would be to check the file extension on the
argv[argc-1]
argument.