summaryrefslogtreecommitdiff
path: root/src/termlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/termlib.c')
-rw-r--r--src/termlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/termlib.c b/src/termlib.c
index 2091115d7..33f332a54 100644
--- a/src/termlib.c
+++ b/src/termlib.c
@@ -191,7 +191,7 @@ nextent(tbuf, termcap, buflen) /* Read 1 entry from TERMCAP file */
lbuf[0] == '\t' &&
lbuf[1] == ':')
{
- strcpy(lbuf, lbuf+2);
+ mch_memmove(lbuf, lbuf + 2, strlen(lbuf + 2) + 1);
llen -= 2;
}
if (lbuf[llen-2] == '\\') /* and continuations */