bbc / bmx

Library and utilities to read and write broadcasting media files. Primarily supports the MXF file format
BSD 3-Clause "New" or "Revised" License
57 stars 16 forks source link

Improve commandline option parsing #40

Closed philipnbbc closed 9 months ago

philipnbbc commented 9 months ago

Make sure sscanf processes all characters in commandline options to avoid invalid option values being misinterpreted. A %n is added to the end of format strings to check sscanf has reached the end.

Fixes https://github.com/bbc/bmx/issues/38