Skip to content

sprintf of string causes system hang and reboot #3289

@countrysideboy

Description

@countrysideboy

char message[50]= {0};
float humi;
sprintf(message, "%s%", String(humi, 0).c_str());

In the version of 2.3.0, the code above works ok, but when i switch to 2.4.0-rc1, the system hang and reboot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    waiting for feedbackWaiting on additional info. If it's not received, the issue may be closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions