[PATCH] libsysfs: work around a klibc bug

This commit is contained in:
kay.sievers@vrfy.org
2005-04-26 23:36:13 -07:00
committed by Greg KH
parent fd9efc00a2
commit 3f930093f9
+1 -1
View File
@@ -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)