author | Florian Pose <fp@igh-essen.com> |
Wed, 28 Oct 2009 13:18:07 +0100 | |
changeset 1549 | 68d2af150381 |
parent 1548 | b4ad9d06962d (diff) |
parent 1547 | e6f664477a46 (current diff) |
child 1550 | 81a16ba13ae6 |
--- a/master/module.c Wed Oct 21 18:49:47 2009 +0200 +++ b/master/module.c Wed Oct 28 13:18:07 2009 +0100 @@ -463,7 +463,8 @@ ec_device_attach(&master->main_device, net_dev, poll, module); up(&master->device_sem); - sprintf(net_dev->name, "ec%u", master->index); + snprintf(net_dev->name, IFNAMSIZ, "ec%u", master->index); + return &master->main_device; // offer accepted } else {