diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-04-05 18:51:50 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-04-05 18:51:50 +0200 |
commit | 798d069eae49e88fe682649740e6608fa1fa5b47 (patch) | |
tree | f76ccd901a7fb90634fe62a7665a62d9415f382c /atasmart.c | |
parent | 2bd0849ff16021ad96f5ff291853db7f24bdffa3 (diff) |
make sure we don't choke on attribute id 255
Diffstat (limited to 'atasmart.c')
-rw-r--r-- | atasmart.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 }, |