diskutil: ensure we have enough room to not write past end
[fio.git] / diskutil.c
index dca37483fa96a2401c0e49cffc4909659e79ccf0..9767ea255c882a66511954472a2a9f70f56c5d41 100644 (file)
@@ -363,7 +363,7 @@ static int find_block_dir(int majdev, int mindev, char *path, int link_ok)
                return 0;
 
        while ((dir = readdir(D)) != NULL) {
-               char full_path[256];
+               char full_path[257];
 
                if (!strcmp(dir->d_name, ".") || !strcmp(dir->d_name, ".."))
                        continue;