summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2003-03-30 23:11:42 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2003-03-30 23:11:42 +0000
commitae8a0dce690febd4518cbea95bd92f6db061f133 (patch)
treea46208b8f02d43b7210ecd700bd58e7e49513761
parent332d4f286d988251510c460e02f95231d49468ed (diff)
Use PATH_MAX, not _POSIX_PATH_MAX for filename buffers.
-rw-r--r--usr.bin/sort/sort.c8
-rw-r--r--usr.bin/sort/tmp.c6
2 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/sort/sort.c b/usr.bin/sort/sort.c
index 830e17f4e24..77fb4b15deb 100644
--- a/usr.bin/sort/sort.c
+++ b/usr.bin/sort/sort.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sort.c,v 1.18 2002/02/16 21:27:52 millert Exp $ */
+/* $OpenBSD: sort.c,v 1.19 2003/03/30 23:11:41 millert Exp $ */
/*-
* Copyright (c) 1993
@@ -46,7 +46,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)sort.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: sort.c,v 1.18 2002/02/16 21:27:52 millert Exp $";
+static char rcsid[] = "$OpenBSD: sort.c,v 1.19 2003/03/30 23:11:41 millert Exp $";
#endif
#endif /* not lint */
@@ -89,9 +89,9 @@ struct coldesc *clist;
int ncols = 0;
int ND = 10; /* limit on number of -k options. */
-char devstdin[] = _PATH_STDIN;
-char toutpath[_POSIX_PATH_MAX];
+char *devstdin = _PATH_STDIN;
char *tmpdir = _PATH_VARTMP;
+char toutpath[PATH_MAX];
static void cleanup(void);
static void onsig(int);
diff --git a/usr.bin/sort/tmp.c b/usr.bin/sort/tmp.c
index 4f092c2f2dc..4a8f22e3a10 100644
--- a/usr.bin/sort/tmp.c
+++ b/usr.bin/sort/tmp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tmp.c,v 1.3 2000/06/30 16:00:23 millert Exp $ */
+/* $OpenBSD: tmp.c,v 1.4 2003/03/30 23:11:41 millert Exp $ */
/*-
* Copyright (c) 1993
@@ -40,7 +40,7 @@
#if 0
static char sccsid[] = "@(#)tmp.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: tmp.c,v 1.3 2000/06/30 16:00:23 millert Exp $";
+static char rcsid[] = "$OpenBSD: tmp.c,v 1.4 2003/03/30 23:11:41 millert Exp $";
#endif
#endif /* not lint */
@@ -66,7 +66,7 @@ ftmp()
sigset_t set, oset;
FILE *fp;
int fd;
- char pathb[_POSIX_PATH_MAX], *path;
+ char pathb[PATH_MAX], *path;
path = pathb;
(void)snprintf(path, sizeof(pathb), "%s%s%s", tmpdir,