fit: load all fragments from the extra configurations
[oweals/u-boot.git] / drivers / net / sandbox-raw-bus.c
index 76d65afe6c87a8215de48f3468dd6677c84bca68..0086f25fc1fa8c8cf8354d41b9aaec2819fb07d9 100644 (file)
@@ -42,7 +42,7 @@ static int eth_raw_bus_post_bind(struct udevice *dev)
                device_probe(child);
                priv = dev_get_priv(child);
                if (priv) {
-                       memcpy(priv->host_ifname, i->if_name, IFNAMSIZ);
+                       strcpy(priv->host_ifname, i->if_name);
                        priv->host_ifindex = i->if_index;
                        priv->local = local;
                }