aboutsummaryrefslogtreecommitdiffstats
path: root/src/s/gnu-linux.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/s/gnu-linux.h')
-rw-r--r--src/s/gnu-linux.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h
index e3d43249d81..6f45ee00b78 100644
--- a/src/s/gnu-linux.h
+++ b/src/s/gnu-linux.h
@@ -63,8 +63,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
63 close (fd); \ 63 close (fd); \
64 return -1; \ 64 return -1; \
65 } \ 65 } \
66 strncpy (pty_name, ptyname, sizeof (pty_name)); \ 66 snprintf (pty_name, sizeof pty_name, "%s", ptyname); \
67 pty_name[sizeof (pty_name) - 1] = 0; \
68 sigunblock (sigmask (SIGCHLD)); \ 67 sigunblock (sigmask (SIGCHLD)); \
69 } 68 }
70 69