From cf9ffc8d9c02553b9698a795f26208fc121c8f1a Mon Sep 17 00:00:00 2001 From: "olh@suse.de" Date: Fri, 2 Jul 2004 18:59:30 -0700 Subject: [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 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; -- cgit v1.2.3-54-g00ecf