From cf9ffc8d9c02553b9698a795f26208fc121c8f1a Mon Sep 17 00:00:00 2001 From: "olh@suse.de" Date: Fri, 2 Jul 2004 18:59:30 -0700 Subject: [PATCH] [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. --- udevdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/udevdb.c b/udevdb.c index f2469367..c4dc4f00 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; -- 2.39.5