bmon icon indicating copy to clipboard operation
bmon copied to clipboard

Increase buffer size to avoid possible truncation:

Open bbonev opened this issue 4 years ago • 0 comments

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

bbonev avatar Dec 01 '20 02:12 bbonev