* grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
This commit is contained in:
parent
b453412d2f
commit
3c349f5a37
2 changed files with 5 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -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. */
|
||||
|
|
Loading…
Reference in a new issue