* grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-05-06 16:10:29 +02:00
parent 75ccaea346
commit 83b2e89cf7
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/fs/sfs.c (grub_fshelp_node): Fix types.

View file

@ -138,7 +138,7 @@ grub_ls_list_files (char *dirname, int longlist, int all, int human)
else
{
grub_uint64_t fsize = file->size * 100ULL;
int fsz = file->size;
grub_uint64_t fsz = file->size;
int units = 0;
char buf[20];