arptables.c:765: possible missing string termination
Brought to you by:
bdschuym
[arptables.c:765]: (error) Dangerous usage of 'buf' (strncpy doesn't always null-terminate it).
Source code is
strncpy(buf, name, sizeof(buf) - 1);
if ((p = strrchr(buf, '/')) != NULL) {
Maybe better code
strncpy(buf, name, sizeof(buf) - 1);
buf[ sizeof(buf) - 1] = '\0';
if ((p = strrchr(buf, '/')) != NULL) {
thanks, applied.