aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/drivers/unix
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2013-04-22 17:43:38 +0200
committerLukas Larsson <[email protected]>2013-04-22 17:43:38 +0200
commit6fcfb390c8d70aa4d7abfdfd12d13aa131e44601 (patch)
treeb182ed6cedd5b91838bbfdd360f9ee70aea23e8d /erts/emulator/drivers/unix
parent4907e049b4d409d2b6220b140e38360bb837720b (diff)
downloadotp-6fcfb390c8d70aa4d7abfdfd12d13aa131e44601.tar.gz
otp-6fcfb390c8d70aa4d7abfdfd12d13aa131e44601.tar.bz2
otp-6fcfb390c8d70aa4d7abfdfd12d13aa131e44601.zip
Fix src/dest overlap in ttsl driver
Diffstat (limited to 'erts/emulator/drivers/unix')
-rw-r--r--erts/emulator/drivers/unix/ttsl_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/drivers/unix/ttsl_drv.c b/erts/emulator/drivers/unix/ttsl_drv.c
index 8b24eb98c0..bedb5ef784 100644
--- a/erts/emulator/drivers/unix/ttsl_drv.c
+++ b/erts/emulator/drivers/unix/ttsl_drv.c
@@ -823,7 +823,7 @@ static int del_chars(int n)
r = llen - lpos - l; /* Characters after deleted */
/* Fix up buffer and buffer pointers. */
if (r > 0)
- memcpy(lbuf + lpos, lbuf + pos, r * sizeof(Uint32));
+ memmove(lbuf + lpos, lbuf + pos, r * sizeof(Uint32));
llen -= l;
/* Write out characters after, blank the tail and jump back to lpos. */
write_buf(lbuf + lpos, r);