commit 6bb2d4258cd2cedef1997d8fc42f4959943c6a38
parent de6b6b9796e5edf460422f2fa5ab9ee3f0e10525
Author: Frederic Cambus <fred@statdns.com>
Date: Sun, 29 Jul 2018 22:14:55 +0200
Use UINT64_MAX for strtonum() maxval
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/logswan.c b/src/logswan.c
@@ -267,7 +267,7 @@ main(int argc, char *argv[]) {
/* Increment bandwidth usage */
if (parsedLine.objectSize) {
- bandwidth = strtonum(parsedLine.objectSize, 0, INT64_MAX, &errstr);
+ bandwidth = strtonum(parsedLine.objectSize, 0, UINT64_MAX, &errstr);
if (!errstr) {
results.bandwidth += bandwidth;