summaryrefslogtreecommitdiffstats
path: root/atasmart.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-04-05 18:51:50 +0200
committerLennart Poettering <lennart@poettering.net>2009-04-05 18:51:50 +0200
commit798d069eae49e88fe682649740e6608fa1fa5b47 (patch)
treef76ccd901a7fb90634fe62a7665a62d9415f382c /atasmart.c
parent2bd0849ff16021ad96f5ff291853db7f24bdffa3 (diff)
make sure we don't choke on attribute id 255
Diffstat (limited to 'atasmart.c')
-rw-r--r--atasmart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/atasmart.c b/atasmart.c
index ec47a0e..7da80e0 100644
--- a/atasmart.c
+++ b/atasmart.c
@@ -883,7 +883,7 @@ typedef struct SkSmartAttributeInfo {
/* This data is stolen from smartmontools */
/* %STRINGPOOLSTART% */
-static const SkSmartAttributeInfo const attribute_info[255] = {
+static const SkSmartAttributeInfo const attribute_info[256] = {
[1] = { "raw-read-error-rate", SK_SMART_ATTRIBUTE_UNIT_NONE },
[2] = { "throughput-performance", SK_SMART_ATTRIBUTE_UNIT_UNKNOWN },
[3] = { "spin-up-time", SK_SMART_ATTRIBUTE_UNIT_MSECONDS },