2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>

Eliminate hexdump 4Gib barrier.

	* commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
	* lib/arg.c (grub_arg_parse): Use grub_strtoull.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2009-12-10 14:37:42 +01:00
parent e1f270654e
commit 2520d4b815
3 changed files with 11 additions and 4 deletions

View file

@ -355,7 +355,7 @@ grub_arg_parse (grub_extcmd_t cmd, int argc, char **argv,
{
char *tail;
grub_strtoul (option, &tail, 0);
grub_strtoull (option, &tail, 0);
if (tail == 0 || tail == option || *tail != '\0' || grub_errno)
{
grub_error (GRUB_ERR_BAD_ARGUMENT,