Message ID | 20110312043409.GA3634@zhy (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
--- utils/helpers/sysfs-orig.c 2011-03-12 12:32:06.179827929 +0800 +++ utils/helpers/sysfs.c 2011-03-12 12:24:36.865599924 +0800 @@ -126,7 +126,7 @@ return 0; } - value = strtoul(linebuf, &endp, 0); + value = strtoull(linebuf, &endp, 0); if ( endp == linebuf || errno == ERANGE ) return 0;