From 6aaab293d6300e7b992ead7e89d8a467d73b012a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Thu, 17 May 2018 15:09:07 +0200 Subject: [PATCH] [apps/code] Change memcpy to memmove on overlapping buffers Change-Id: Ic85b177375a4030ad80c8c539ee0084fb095ad44 --- apps/code/console_store.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/code/console_store.cpp b/apps/code/console_store.cpp index 695b0278a..e23135b1f 100644 --- a/apps/code/console_store.cpp +++ b/apps/code/console_store.cpp @@ -148,7 +148,7 @@ void ConsoleStore::deleteLineAtIndex(int index) { nextLineStart++; } nextLineStart++; - memcpy(&m_history[i], &m_history[nextLineStart], (k_historySize - 1) - nextLineStart + 1); + memmove(&m_history[i], &m_history[nextLineStart], (k_historySize - 1) - nextLineStart + 1); return; } }