When we are parsing input arguments we should really use stroull to get unsigned long long numbers, since this is what we can specify on the command line. With this fix it should parse long numbers on the 32 bit architecture correctly. Signed-off-by: Lukas Czerner <lczerner@xxxxxxxxxx> --- src/fstrim.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/fstrim.c b/src/fstrim.c index f1f37ec..e23bcb3 100644 --- a/src/fstrim.c +++ b/src/fstrim.c @@ -97,7 +97,7 @@ static unsigned long long get_number(char **optarg) } errno = 0; - number = strtoul(opt, &end , 0); + number = strtoull(opt, &end , 0); if (errno) err_exit("%s: %s (%s)\n", program_name, strerror(errno), *optarg); -- 1.7.4.4 _______________________________________________ xfs mailing list xfs@xxxxxxxxxxx http://oss.sgi.com/mailman/listinfo/xfs