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

[PATCH] allow NAME_SIZE > SYSFS_PATH_MAX

NAME_SIZE is too small for some configurations. This patch allows more
or longer names, it just keeps the stack in a sane state.
This commit is contained in:
olh@suse.de 2004-07-02 18:59:30 -07:00 committed by Greg KH
parent ea08d6fc3e
commit cf9ffc8d9c

View File

@ -52,7 +52,7 @@ int udevdb_add_dev(const char *path, const struct udevice *dev)
if ((path == NULL) || (dev == NULL))
return -ENODEV;
memset(keystr, 0, NAME_SIZE);
memset(keystr, 0, SYSFS_PATH_MAX);
strfieldcpy(keystr, path);
key.dptr = keystr;
key.dsize = strlen(keystr) + 1;