From fcf3bfb6ffcd03e2b134f6b1c09571351793d50b Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Sat, 23 Apr 2011 16:45:00 +0200 Subject: [PATCH] small readability improvement --- grub-core/disk/luks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grub-core/disk/luks.c b/grub-core/disk/luks.c index 4a35ef011..a9590cab5 100644 --- a/grub-core/disk/luks.c +++ b/grub-core/disk/luks.c @@ -637,7 +637,7 @@ luks_setkey (grub_luks_t dev, grub_uint8_t *key, grub_size_t keysize) grub_memset (idx, 0, GF_BYTES); for (i = 0; i < GRUB_DISK_SECTOR_SIZE; i += GF_BYTES) { - idx[15] = i / GF_BYTES; + idx[GF_BYTES - 1] = i / GF_BYTES; gf_mul_be (dev->lrw_precalc + i, idx, dev->lrw_key); } }