summaryrefslogtreecommitdiff
path: root/libsysfs/sysfs_class.c
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2005-02-16 23:20:48 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 23:36:13 -0700
commit3f930093f9ac79dca6bcc2dcbc8714c143709478 (patch)
tree4dc5b4d0bd6aeb0cbe0ace6d672e57d720fadc39 /libsysfs/sysfs_class.c
parentfd9efc00a2e477423185c993b8ec4570ef3ee07d (diff)
[PATCH] libsysfs: work around a klibc bug
Diffstat (limited to 'libsysfs/sysfs_class.c')
-rw-r--r--libsysfs/sysfs_class.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsysfs/sysfs_class.c b/libsysfs/sysfs_class.c
index a132bb64cb..4ea7f41c99 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)