* grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
place.
This commit is contained in:
parent
cb7f944e44
commit
1501ac21b0
2 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue