diff options
author | kay.sievers@vrfy.org <kay.sievers@vrfy.org> | 2005-02-16 23:20:48 +0100 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 23:36:13 -0700 |
commit | 3f930093f9ac79dca6bcc2dcbc8714c143709478 (patch) | |
tree | 4dc5b4d0bd6aeb0cbe0ace6d672e57d720fadc39 | |
parent | fd9efc00a2e477423185c993b8ec4570ef3ee07d (diff) |
[PATCH] libsysfs: work around a klibc bug
-rw-r--r-- | libsysfs/sysfs_class.c | 2 |
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) |