[apps/code] Change memcpy to memmove on overlapping buffers

Change-Id: Ic85b177375a4030ad80c8c539ee0084fb095ad44
This commit is contained in:
Léa Saviot
2018-05-17 15:09:07 +02:00
committed by EmilieNumworks
parent 8240d3d0df
commit 6aaab293d6

View File

@@ -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;
}
}