diff options
author | Andreas Schwab <schwab@linux-m68k.org> | 2012-02-01 12:50:48 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2012-02-01 12:58:27 +0100 |
commit | 2b2823b4b5c41ec629e346cc6dc8407f1d519eb4 (patch) | |
tree | 853c462c07fd7d62551b6895b19dd408a72dc4dd | |
parent | 09db3f5b66266cb808acfa26d082528ca6e50e4e (diff) |
ata_id: fix identify string fixup
-rw-r--r-- | src/extras/ata_id/ata_id.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/extras/ata_id/ata_id.c b/src/extras/ata_id/ata_id.c index 7c3be71a30..257f494496 100644 --- a/src/extras/ata_id/ata_id.c +++ b/src/extras/ata_id/ata_id.c @@ -307,8 +307,8 @@ static void disk_identify_get_string(uint8_t identify[512], assert((dest_len & 1) == 0); while (dest_len > 0) { - c1 = ((uint16_t *) identify)[offset_words] >> 8; - c2 = ((uint16_t *) identify)[offset_words] & 0xff; + c1 = identify[offset_words * 2 + 1]; + c2 = identify[offset_words * 2]; *dest = c1; dest++; *dest = c2; |