Skip to content

GuiValueBoxFloat() has *textValue argument and modifies it. #487

@nezvers

Description

@nezvers

What's going here?

//char textValue[RAYGUI_VALUEBOX_MAX_CHARS + 1] = "\0";

If comparing to GuiValueBox it has member variable char textValue[RAYGUI_VALUEBOX_MAX_CHARS + 1] with predefined size. But GuiValueBox takes it in as an argument and modifies it.
If I'm leaving it blank with "" it kinda works.
It is manipulating text argument by showing value, except lost first symbol. Seems like a stack overflow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions