Fix crash with absurdly but not impossibly deeply nested device stacks
[fio.git] / diskutil.h
index b89aaccbf8020db0e8008f8e09d8b53858c8f6c1..ddd64719b5cf6d97f09d2f59716eeb6552c4d95f 100644 (file)
@@ -42,7 +42,7 @@ struct disk_util {
 
        char *name;
        char *sysfs_root;
 
        char *name;
        char *sysfs_root;
-       char path[256];
+       char path[PATH_MAX];
        int major, minor;
 
        struct disk_util_stat dus;
        int major, minor;
 
        struct disk_util_stat dus;