summaryrefslogtreecommitdiffhomepage
path: root/networking
diff options
context:
space:
mode:
Diffstat (limited to 'networking')
-rw-r--r--networking/ifenslave.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/networking/ifenslave.c b/networking/ifenslave.c
index 44839868a..1e983f2ba 100644
--- a/networking/ifenslave.c
+++ b/networking/ifenslave.c
@@ -434,8 +434,9 @@ static NOINLINE void get_drv_info(char *master_ifname)
memset(&ifr, 0, sizeof(ifr));
ifr.ifr_data = (caddr_t)&info;
info.cmd = ETHTOOL_GDRVINFO;
- strncpy(info.driver, "ifenslave", 32);
- snprintf(info.fw_version, 32, "%d", BOND_ABI_VERSION);
+ /* both fields are 32 bytes long (long enough) */
+ strcpy(info.driver, "ifenslave");
+ strcpy(info.fw_version, utoa(BOND_ABI_VERSION));
if (set_ifrname_and_do_ioctl(SIOCETHTOOL, &ifr, master_ifname) < 0) {
if (errno == EOPNOTSUPP)
return;