4ZM / mfterm

Terminal for working with Mifare Classic 1-4k Tags
GNU General Public License v3.0
149 stars 36 forks source link

Errors during compilation #37

Open AetherEternity opened 5 years ago

AetherEternity commented 5 years ago

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