Skip to content

sprintf deprecation warning on macOS for datetimemodule #103733

Closed as not planned
Closed as not planned
@corona10

Description

@corona10

How to reproduce

./configure --with-address-sanitizer && make

Deprecation warning

./Modules/_datetimemodule.c:1566:9: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
        sprintf(freplacement, "%06d", 0);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions