From b029a9c67b345bb1133e8e33dee6bb5c42558478 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Fri, 9 Jan 2015 17:41:43 -0800 Subject: [PATCH] Use PATH_MAX instead of NAME_MAX --- spike_main/xspike.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spike_main/xspike.cc b/spike_main/xspike.cc index 4331dbe..f8c8ca7 100644 --- a/spike_main/xspike.cc +++ b/spike_main/xspike.cc @@ -90,7 +90,7 @@ static pid_t fork_xterm(int* tty_fd) return -1; } - char tty[NAME_MAX]; + char tty[PATH_MAX]; ssize_t ttylen = read(fds[0], tty, sizeof(tty)); if (ttylen <= 1 || tty[ttylen-1] != '\n') return -1; -- 2.30.2