1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-30 06:25:25 +03:00

[PATCH] be paranoid in dev_d.c

This commit is contained in:
greg@kroah.com 2004-10-06 00:23:37 -07:00 committed by Greg KH
parent 057f2bdbf6
commit 470c0ef2a6

View File

@ -71,6 +71,7 @@ void dev_d_send(struct udevice *dev, const char *subsystem, const char *devpath)
if (udev_dev_d == 0)
return;
memset(env_devname, 0x00, sizeof(env_devname));
if (dev->type == 'b' || dev->type == 'c') {
strfieldcpy(env_devname, udev_root);
strfieldcat(env_devname, dev->name);