* grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2011-12-13 23:11:48 +01:00
parent b453412d2f
commit 3c349f5a37
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.

View file

@ -490,7 +490,7 @@ grub_jfs_getent (struct grub_jfs_diropen *diro)
void addstr (grub_uint16_t *name, int ulen)
{
while (ulen--)
filename[strpos++] = *(name++);
filename[strpos++] = grub_le_to_cpu16 (*(name++));
}
/* The last node, read in more. */