* grub-core/fs/ntfs.c: Add comment about fixed allocation size.

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2013-10-20 18:48:06 +02:00
parent f3e393411b
commit 1ba6b9b96f
2 changed files with 5 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/fs/ntfs.c: Add comment about fixed allocation size.
2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/fs/zfs.c: Remove variable length arrays.

View file

@ -643,6 +643,7 @@ list_file (struct grub_ntfs_file *diro, grub_uint8_t *pos,
if (ustr == NULL)
return 0;
{
/* ns is read at uint8_t, so is can be at most 255. */
grub_uint16_t tmp[256];
int i;
for (i = 0; i < ns; i++)