File smartmontools-array_subscript.patch of Package smartmontools
--- os_linux.cpp
+++ os_linux.cpp
@@ -719,7 +719,7 @@
return ret;
}
- for (i=0; i<CISS_MAX_LUN+1; i++)
+ for (i=0; i<CISS_MAX_LUN; i++)
{
if (luns->LUN[i][6] == target)
{