Commit a25b982e authored by Ben Collins's avatar Ben Collins Committed by Linus Torvalds

[PATCH] A few more strlcpy's for drivers/base/

parent faad0c27
......@@ -544,11 +544,11 @@ int bus_register(struct bus_type * bus)
subsys_set_kset(bus,bus_subsys);
subsystem_register(&bus->subsys);
snprintf(bus->devices.kobj.name,KOBJ_NAME_LEN,"devices");
strlcpy(bus->devices.kobj.name, "devices", KOBJ_NAME_LEN);
bus->devices.subsys = &bus->subsys;
kset_register(&bus->devices);
snprintf(bus->drivers.kobj.name,KOBJ_NAME_LEN,"drivers");
strlcpy(bus->drivers.kobj.name, "drivers", KOBJ_NAME_LEN);
bus->drivers.subsys = &bus->subsys;
bus->drivers.ktype = &ktype_driver;
kset_register(&bus->drivers);
......
......@@ -63,8 +63,8 @@ int sys_register_root(struct sys_root * root)
error = device_register(&root->dev);
if (!error) {
strncpy(root->sysdev.bus_id,"sys",BUS_ID_SIZE);
strncpy(root->sysdev.name,"System Bus",DEVICE_NAME_SIZE);
strlcpy(root->sysdev.bus_id,"sys",BUS_ID_SIZE);
strlcpy(root->sysdev.name,"System Bus",DEVICE_NAME_SIZE);
root->sysdev.parent = &root->dev;
error = device_register(&root->sysdev);
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment