Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors during compilation #37

Open
AetherEternity opened this issue Feb 15, 2019 · 0 comments
Open

Errors during compilation #37

AetherEternity opened this issue Feb 15, 2019 · 0 comments

Comments

@AetherEternity
Copy link

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);
^~~~~~~~~~~~~

AetherEternity added a commit to AetherEternity/mfterm that referenced this issue Feb 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant