* grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right

place.
This commit is contained in:
Bean 2012-04-18 23:21:38 +02:00 committed by Vladimir 'phcoder' Serbinenko
parent cb7f944e44
commit 1501ac21b0
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2012-04-18 Bean <bean123ch@gmail.com>
* grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
place.
2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/kern/emu/hostdisk.c (open_device): New argument max. All

View file

@ -35,7 +35,7 @@ grub_ata_strncpy (grub_uint16_t *dst16, grub_uint16_t *src16, grub_size_t len)
for (i = 0; i < len / 2; i++)
*(dst16++) = grub_be_to_cpu16 (*(src16++));
dst16[i] = 0;
*dst16 = 0;
}
static void