You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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);
^~~~~~~~~~~~~
The text was updated successfully, but these errors were encountered:
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);
^~~~~~~~~~~~~
The text was updated successfully, but these errors were encountered: