Skip to content

Errors during compilation #37

@AetherEternity

Description

@AetherEternity

mfterm.c: In function ‘completion_sub_cmd_generator’:
mfterm.c:263:5: error: ‘strncpy’ specified bound 128 equals destination size [-Werror=stringop-truncation]
strncpy(buff, name, sizeof(buff));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘completion_spec_generator.part.0’,
inlined from ‘completion_spec_generator’ at mfterm.c:287:7:
mfterm.c:334:7: error: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Werror=stringop-truncation]
strncpy(str + parent_len, fname, fname_len);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mfterm.c: In function ‘completion_spec_generator’:
mfterm.c:319:24: note: length computed here
size_t fname_len = strlen(fname);
^~~~~~~~~~~~~

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