diff mbox

[2/5] parse_size(): replace atoll() with strtoull()

Message ID 1350937068-10080-3-git-send-email-kreijack@inwind.com (mailing list archive)
State New, archived
Headers show

Commit Message

Goffredo Baroncelli Oct. 22, 2012, 8:17 p.m. UTC
From: Goffredo Baroncelli <kreijack@inwind.it>

Replace the function atoll with strtoull()
---
 utils.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/utils.c b/utils.c
index 705be7b..732c782 100644
--- a/utils.c
+++ b/utils.c
@@ -1243,6 +1243,6 @@  u64 parse_size(char *s)
 		}
 		s[len - 1] = '\0';
 	}
-	return atoll(s) * mult;
+	return strtoull(s, NULL, 0) * mult;
 }