* include/grub/misc.h (grub_strtol): Fix overflow.

This commit is contained in:
Vladimir Serbinenko 2013-12-21 14:35:46 +01:00
parent a997af68e3
commit 0d4aa91d0d
2 changed files with 5 additions and 1 deletions

View file

@ -296,7 +296,7 @@ static inline long
grub_strtol (const char *str, char **end, int base)
{
int negative = 0;
unsigned long magnitude;
unsigned long long magnitude;
while (*str && grub_isspace (*str))
str++;