diff options
author | olh@suse.de <olh@suse.de> | 2004-07-02 18:59:30 -0700 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 21:36:59 -0700 |
commit | cf9ffc8d9c02553b9698a795f26208fc121c8f1a (patch) | |
tree | 570f2d9e0445b2ab290ddf5bfd8775fdf64647b9 | |
parent | ea08d6fc3eff4ca20a195451d7f3e154e50acb1f (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |