From 3f930093f9ac79dca6bcc2dcbc8714c143709478 Mon Sep 17 00:00:00 2001 From: "kay.sievers@vrfy.org" Date: Wed, 16 Feb 2005 23:20:48 +0100 Subject: [PATCH] [PATCH] libsysfs: work around a klibc bug --- libsysfs/sysfs_class.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsysfs/sysfs_class.c b/libsysfs/sysfs_class.c index a132bb64..4ea7f41c 100644 --- a/libsysfs/sysfs_class.c +++ b/libsysfs/sysfs_class.c @@ -111,7 +111,7 @@ static void set_classdev_classname(struct sysfs_class_device *cdev) if (c == NULL) { c = strstr(cdev->path, SYSFS_BLOCK_NAME); } else { - c = strstr(c, "/"); + c = strchr(c, '/'); } if (c == NULL) -- 2.39.5