Skip to content

Redundant judgment exists in es_addChar  #18

@PuzzleZz

Description

@PuzzleZz

When you call this interface to add a single character to a character string, you need to check whether lenBuf is sufficient. However, lenStr cannot be greater than lenBuf.
Change if((*ps)->lenStr >= (*ps)->lenBuf) to if((*ps)->lenStr == (*ps)->lenBuf) for better understanding

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