summaryrefslogtreecommitdiffstats
path: root/sbin/routed
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/routed')
-rw-r--r--sbin/routed/defs.h2
-rw-r--r--sbin/routed/trace.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/sbin/routed/defs.h b/sbin/routed/defs.h
index aba95e3..2e7aa30 100644
--- a/sbin/routed/defs.h
+++ b/sbin/routed/defs.h
@@ -499,7 +499,7 @@ extern int tracelevel, new_tracelevel;
#define TRACEPACKETS (tracelevel >= 2) /* note packets */
#define TRACEACTIONS (tracelevel != 0)
extern FILE *ftrace; /* output trace file */
-extern char inittracename[MAXPATHLEN+1];
+extern char inittracename[PATH_MAX];
extern struct radix_node_head *rhead;
diff --git a/sbin/routed/trace.c b/sbin/routed/trace.c
index ba1d31f..5b258df 100644
--- a/sbin/routed/trace.c
+++ b/sbin/routed/trace.c
@@ -58,8 +58,8 @@ __RCSID("$NetBSD$");
int tracelevel, new_tracelevel;
FILE *ftrace; /* output trace file */
static const char *sigtrace_pat = "%s";
-static char savetracename[MAXPATHLEN+1];
-char inittracename[MAXPATHLEN+1];
+static char savetracename[PATH_MAX];
+char inittracename[PATH_MAX];
int file_trace; /* 1=tracing to file, not stdout */
static void trace_dump(void);
OpenPOWER on IntegriCloud