summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorolh@suse.de <olh@suse.de>2004-07-02 18:59:30 -0700
committerGreg KH <gregkh@suse.de>2005-04-26 21:36:59 -0700
commitcf9ffc8d9c02553b9698a795f26208fc121c8f1a (patch)
tree570f2d9e0445b2ab290ddf5bfd8775fdf64647b9
parentea08d6fc3eff4ca20a195451d7f3e154e50acb1f (diff)
[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.
-rw-r--r--udevdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udevdb.c b/udevdb.c
index f246936710..c4dc4f005c 100644
--- a/udevdb.c
+++ b/udevdb.c
@@ -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;