diff options
-rw-r--r-- | com32/modules/chain.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/modules/chain.c b/com32/modules/chain.c index d5bf4f0d..6b0c56a4 100644 --- a/com32/modules/chain.c +++ b/com32/modules/chain.c @@ -266,7 +266,7 @@ static void *read_sectors(uint64_t lba, uint8_t count) if (int13_retry(&inreg, NULL)) return NULL; - data = malloc(SECTOR); + data = malloc(count * SECTOR); if (data) memcpy(data, buf, count * SECTOR); return data; |