diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2015-01-20 22:09:51 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2015-01-20 22:09:51 +0000 |
commit | 06e4efb9bbbeb125b25f16118e3778fa795e1591 (patch) | |
tree | c2c6927af185f4bdfe506e14ebee17c29d57545e /include/limits.h | |
parent | 9af377887a636a6cd3f4237418482fea35ebb15b (diff) |
increase TMP_MAX to the equivalent of INT_MAX. it's actually more,
but safer not to wraparound by accident.
ok deraadt millert miod
Diffstat (limited to 'include/limits.h')
-rw-r--r-- | include/limits.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/limits.h b/include/limits.h index 1776bf76268..08913b421e5 100644 --- a/include/limits.h +++ b/include/limits.h @@ -1,4 +1,4 @@ -/* $OpenBSD: limits.h,v 1.18 2013/03/01 21:16:34 guenther Exp $ */ +/* $OpenBSD: limits.h,v 1.19 2015/01/20 22:09:50 tedu Exp $ */ /* $NetBSD: limits.h,v 1.7 1994/10/26 00:56:00 cgd Exp $ */ /* @@ -96,7 +96,7 @@ #if __XPG_VISIBLE # if __XPG_VISIBLE < 600 # define PASS_MAX 128 /* _PASSWORD_LEN from <pwd.h> */ -# define TMP_MAX 308915776 +# define TMP_MAX 0x7fffffff /* more, but don't overflow int */ # endif # if __XPG_VISIBLE < 700 |