Browse Source

increase TMP_MAX to the equivalent of INT_MAX. it's actually more,

but safer not to wraparound by accident.
ok deraadt millert miod
OPENBSD_5_7
tedu 9 years ago
parent
commit
fa6ff49ac5
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      src/include/limits.h
  2. +2
    -2
      src/include/stdio.h

+ 2
- 2
src/include/limits.h View File

@ -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


+ 2
- 2
src/include/stdio.h View File

@ -1,4 +1,4 @@
/* $OpenBSD: stdio.h,v 1.49 2014/03/27 15:28:16 tedu Exp $ */
/* $OpenBSD: stdio.h,v 1.50 2015/01/20 22:09:50 tedu Exp $ */
/* $NetBSD: stdio.h,v 1.18 1996/04/25 18:29:21 jtc Exp $ */
/*-
@ -191,7 +191,7 @@ __END_DECLS
#define P_tmpdir "/tmp/"
#endif
#define L_tmpnam 1024 /* XXX must be == PATH_MAX */
#define TMP_MAX 308915776
#define TMP_MAX 0x7fffffff /* more, but don't overflow int */
#ifndef SEEK_SET
#define SEEK_SET 0 /* set file offset to offset */


Loading…
Cancel
Save