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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions