[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
2005-04-26 21:36:59 -07:00
committed by Greg KH
parent ea08d6fc3e
commit cf9ffc8d9c
+1 -1
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;