SYMNMLEN does not allow for the terminating \0 - it should be set to 9.
GCC actually warns about this:
In file included from /usr/include/string.h:494:0,
from pass3coff.c:12:
In function ‘strcpy’,
inlined from ‘initcoff’ at pass3coff.c:842:5:
/usr/include/i386-linux-gnu/bits/string_fortified.h:90:10: warning: ‘__builtin___strcpy_chk’ writing 9 bytes into a region of size 8 overflows the destination [-Wstring
op-overflow=]
return __builtin___strcpy_chk (__dest, __src, __bos (__dest));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Fixed in my temporary experimental WSL (Ubuntu) environment.
Bug fix should be available in next release.
Currently fixing problems with IMP signal handling in a Linux environment.
GCC actually warns about this:
and many others.