Open hg42 opened 1 year ago
fixes this error:
main.c:824:7: error: ‘write’ reading 18 bytes from a region of size 17 [-Werror=stringop-overread] 824 | if (write (1, "SIGNAL received\n", 18) < 0) {
the string is 16 chars long (including the \n but excluding the \0, which is counted in the error message)
fixes this error:
main.c:824:7: error: ‘write’ reading 18 bytes from a region of size 17 [-Werror=stringop-overread] 824 | if (write (1, "SIGNAL received\n", 18) < 0) {
the string is 16 chars long (including the \n but excluding the \0, which is counted in the error message)