bmon
bmon copied to clipboard
Increase buffer size to avoid possible truncation:
CC bmon-in_netlink.o in_netlink.c: In function ‘handle_tc_obj’: in_netlink.c:558:37: warning: ‘ (’ directive output may be truncated writing 2 bytes into a region of size between 0 and 31 [-Wformat-truncation=] 558 | snprintf(name, sizeof(name), "%s %s (%s)", | ^~ in_netlink.c:558:2: note: ‘snprintf’ output 5 or more bytes (assuming 36) into a destination of size 32 558 | snprintf(name, sizeof(name), "%s %s (%s)", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 559 | prefix, buf, rtnl_tc_get_kind(tc)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CCLD bmon