Turanic / usbwall

Control ldap users access to usb devices
MIT License
1 stars 5 forks source link

scanstr warning #3

Open Turanic opened 7 years ago

Turanic commented 7 years ago

scanstr function was made to replace the sscanf call with the m modifier. It is basicly a wrapper around sscanf. The problem is, scanstr need to get the format argument by the caller. The format argument is then forwarded to sscanf. The compiler can't verify that it is a litteral string, and give a warning with clang and -Weverything flag.