diff options
Diffstat (limited to 'src/frame.c')
-rw-r--r-- | src/frame.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/frame.c b/src/frame.c index 3a3f552603..8d7981777b 100644 --- a/src/frame.c +++ b/src/frame.c @@ -646,7 +646,7 @@ affects all frames on the same terminal device. */) if (!NILP (tty)) { name = alloca (SBYTES (tty) + 1); - strncpy (name, SSDATA (tty), SBYTES (tty)); + memcpy (name, SSDATA (tty), SBYTES (tty)); name[SBYTES (tty)] = 0; } @@ -657,7 +657,7 @@ affects all frames on the same terminal device. */) if (!NILP (tty_type)) { type = alloca (SBYTES (tty_type) + 1); - strncpy (type, SSDATA (tty_type), SBYTES (tty_type)); + memcpy (type, SSDATA (tty_type), SBYTES (tty_type)); type[SBYTES (tty_type)] = 0; } |