eggdrop icon indicating copy to clipboard operation
eggdrop copied to clipboard

stringop-truncation warning under gcc 8.3 / DragonFly BSD 6.2.1

Open michaelortmann opened this issue 3 years ago • 0 comments

gcc -fPIC -g -O2 -pipe -Wall -I. -I../../.. -I../../..  -I../../../src/mod -I/usr/local/include -DHAVE_CONFIG_H -I/usr/local/include/tcl8.6 -g3 -DDEBUG -DDEBUG_ASSERT -DDEBUG_MEM -DDEBUG_DNS  -DMAKING_MODS -c .././server.mod/server.c && mv -f server.o ../
.././server.mod/server.c: In function 'server_report':
.././server.mod/server.c:2073:7: warning: 'strncat' output may be truncated copying between 0 and 127 bytes from a string of length 499 [-Wstringop-truncation]
       strncat(buf, current->name, (sizeof buf - strlen(buf) - 1));
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
eggdrop 10f14b9098b4cfd9e4c9792f2181c5531e2a8e1e Mon Jan 10 19:54:24 2022 -0500 Fix PBKDF2 cheks for PASS/2
gcc 8.3
DragonFly BSD 6.2.1

michaelortmann avatar Jan 14 '22 11:01 michaelortmann