Skip to content

scanstr warning #3

Description

@Turanic

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions