Skip to content

refacto: string: malloc(length + sizeof("")) to malloc(length + sizeof(<type>)) #50

@yanis-fourel

Description

@yanis-fourel

Currently, "" is always used to get the size of the final \0, but it may be wrong if we malloc for t_chat and sizeof(t_char) != sizeof(char)

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem right

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions