From cfe49b30af32b5b631b2a055c6d10197a70d90ff Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 23 Oct 2009 23:40:53 +0200 Subject: check the right boolean when calculating blob size --- atasmart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atasmart.c b/atasmart.c index bfb38c7..3ec6c19 100644 --- a/atasmart.c +++ b/atasmart.c @@ -2679,7 +2679,7 @@ int sk_disk_get_blob(SkDisk *d, const void **blob, size_t *rsize) { size = (d->identify_valid ? 8 + sizeof(d->identify) : 0) + (d->smart_data_valid ? 8 + sizeof(d->smart_data) : 0) + - (d->smart_thresholds ? 8 + sizeof(d->smart_thresholds) : 0); + (d->smart_thresholds_valid ? 8 + sizeof(d->smart_thresholds) : 0); if (sk_disk_smart_status(d, &good) >= 0) { size += 12; -- cgit