~connman-maintainers/connman/head

Viewing all changes in revision 8093.

  • Committer: Daniel Wagner
  • Date: 2021-04-05 15:28:45 UTC
  • Revision ID: git-v1:90f0e412569b327d8b25b834623b814f1fddbd19
wireguard: Copy interfance names obeying lengths rules

gcc points out the destination buffer has the same size the specified
bound for the string.

  warning: ‘__builtin_strncpy’ specified bound 16 equals destination size [-Wstringop-truncation]

Let's make sure we do not overflow the buffer (should not happen as
the names are provide by the kernel and hence should fit).

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: