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