Skip to content

Conversation

@bbonev
Copy link

@bbonev bbonev commented Dec 1, 2020

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

  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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant