chiark / gitweb /
[PATCH] libsysfs: work around a klibc bug
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>
Wed, 16 Feb 2005 22:20:48 +0000 (23:20 +0100)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 06:36:13 +0000 (23:36 -0700)
libsysfs/sysfs_class.c

index a132bb64cbc097a989e52a8ddeeeda2bdf69ddaa..4ea7f41c99c293410482acfed888498e47f79d27 100644 (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 {
        if (c == NULL) {
                c = strstr(cdev->path, SYSFS_BLOCK_NAME);
        } else {
-               c = strstr(c, "/");
+               c = strchr(c, '/');
        }
 
        if (c == NULL)
        }
 
        if (c == NULL)