From 798d069eae49e88fe682649740e6608fa1fa5b47 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 5 Apr 2009 18:51:50 +0200 Subject: make sure we don't choke on attribute id 255 --- atasmart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }, -- cgit