]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/staging/lustre/lnet/lnet/config.c
Staging: lustre: remove two build warnings
[mirror_ubuntu-bionic-kernel.git] / drivers / staging / lustre / lnet / lnet / config.c
index 0cf0f4f994359512ce38e5664ac9d062b918fb1a..c1265f76b9a5e6d5b67c342f256bf07a6c460bf1 100644 (file)
@@ -355,8 +355,7 @@ lnet_parse_networks(struct list_head *nilist, char *networks)
                                CERROR("Can't allocate net interface name\n");
                                goto failed;
                        }
-                       strncpy(ni->ni_interfaces[niface], iface,
-                               strlen(iface));
+                       strcpy(ni->ni_interfaces[niface], iface);
                        niface++;
                        iface = comma;
                } while (iface);