summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2014-07-20 07:34:44 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2014-07-20 07:34:44 +0000
commit98f6bf70a075aa952a2794d967a024f571c078a2 (patch)
tree42f5a7d1741297062496fe0f6ad70ad32f0e92f0
parentb8f89932f960e896de5117293e931552d4822857 (diff)
Don't depend on <sys/param.h> for MAXPATHLEN
-rw-r--r--usr.bin/telnet/utilities.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/telnet/utilities.c b/usr.bin/telnet/utilities.c
index f04a21e70c0..3f1757f960c 100644
--- a/usr.bin/telnet/utilities.c
+++ b/usr.bin/telnet/utilities.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: utilities.c,v 1.14 2014/07/20 06:39:41 guenther Exp $ */
+/* $OpenBSD: utilities.c,v 1.15 2014/07/20 07:34:43 guenther Exp $ */
/* $NetBSD: utilities.c,v 1.5 1996/02/28 21:04:21 thorpej Exp $ */
/*
@@ -38,6 +38,7 @@
#include "telnet_locl.h"
#include <ctype.h>
+#include <limits.h>
#include <poll.h>
FILE *NetTrace = 0; /* Not in bss, since needs to stay */
@@ -62,7 +63,7 @@ upcase(char *argument)
* The following are routines used to print out debugging information.
*/
-unsigned char NetTraceFile[MAXPATHLEN] = "(standard output)";
+unsigned char NetTraceFile[PATH_MAX] = "(standard output)";
void
SetNetTrace(file)