[hackers] [sbase] Add little estrtonum()-range-fix || FRIGN
commit 8ffa06b3dcab3a147fab85bd28d8b84413c33ce3
Author: FRIGN <dev_AT_frign.de>
Date: Sun Mar 8 21:35:16 2015 +0100
Add little estrtonum()-range-fix
diff --git a/cal.c b/cal.c
index 4e7dbb8..b630221 100644
--- a/cal.c
+++ b/cal.c
_AT_@ -171,7 +171,7 @@ main(int argc, char *argv[])
fday = 1;
break;
case 'n':
- nmons = estrtonum(EARGF(usage()), 1, INT_MAX);
+ nmons = estrtonum(EARGF(usage()), 1, MIN(SIZE_MAX, LLONG_MAX));
break;
case 's': /* Sunday */
fday = 0;
Received on Tue Mar 24 2015 - 23:54:12 CET
This archive was generated by hypermail 2.3.0
: Wed Mar 25 2015 - 00:11:30 CET