Skip to content

Translated buffers are early null terminated #1594

@Adrianilloo

Description

@Adrianilloo

I've just noticed what seems to be an important issue.

When holding a string buffer of size N, formatting it without involving translations allow for the null terminator to be placed at the last cell as much (N - 1), correctly. However, when a translation is used while formatting, the null terminator is written as much late at the N - 2 cell. This causes to always render one cell of the max. length useless.

See attached picture for an illustrative sample.

Captura

Thank you.

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