Skip to content

The libc::strerror function returns an inappropriately mutable pointer #16773

@wycats

Description

@wycats

According to the C99 spec for strerror:

The string pointed to shall not be modified by the application

Therefore, the binding should return a const* c_char pointer, not a mut* c_char

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions