Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Here, the sizeof() function return the size of 'char *' instead of INTF_NAME_LEN. I replaced the use of the latter function by INTF_NAME_LEN (maximum size of the array intf_name). Here is the compiler warning output: route-bsd.c:171:38: warning: sizeof on array function parameter will return size of 'char *' instead of 'char [16]' [-Wsizeof-array-argument] strlcpy(intf_name, namebuf, sizeof(intf_name));
- Loading branch information