Replace strncpy() with strlcpy() when copying the interface name into ifr.ifr_name in link_status(). This ensures proper NUL-termination and addresses a potential issue flagged by Coverity static analysis.
No functional change intended.
Differential D54752
ifconfig: Use strlcpy() instead of strncpy() for interface name copy Authored by amy.vargas_netapp.com on Fri, Jan 16, 9:53 PM. Tags None Referenced Files
Subscribers
Details Replace strncpy() with strlcpy() when copying the interface name into ifr.ifr_name in link_status(). This ensures proper NUL-termination and addresses a potential issue flagged by Coverity static analysis. No functional change intended. Build completed successfully
Diff Detail
Event Timeline
| ||||||||||||||||||||||||||||||||||