diff -r 004a8b91e927 -r 94010c6d8198 master/module.c --- a/master/module.c Mon Jan 04 11:27:37 2010 +0100 +++ b/master/module.c Mon Jan 04 11:28:29 2010 +0100 @@ -471,7 +471,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 {