Hi Daniel,

-       strncpy(ifr.ifr_name, tunnel, IFNAMSIZ);
+       strncpy(ifr.ifr_name, tunnel, IFNAMSIZ - 1);

Either use IFNAMSIZ or sizeof(ifr.ifr_name) but let's not mix both.

Tomasz
_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman

Reply via email to