Revert "fixed merge error"

This reverts commit 00544ddbe9.
This commit is contained in:
thrust26 2018-09-02 18:41:52 +02:00
parent 00544ddbe9
commit eee99a43dc
1 changed files with 1 additions and 1 deletions

View File

@ -689,7 +689,7 @@ void PromptWidget::textPaste()
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void PromptWidget::addToHistory(const char* str)
{
strncpy_s(_history[_historyIndex], str, kLineBufferSize - 1);
strncpy(_history[_historyIndex], str, kLineBufferSize - 1);
_historyIndex = (_historyIndex + 1) % kHistorySize;
_historyLine = 0;