fixed merge error

This commit is contained in:
thrust26 2018-09-02 17:53:35 +02:00
parent f607fab9bb
commit 00544ddbe9
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(_history[_historyIndex], str, kLineBufferSize - 1);
strncpy_s(_history[_historyIndex], str, kLineBufferSize - 1);
_historyIndex = (_historyIndex + 1) % kHistorySize;
_historyLine = 0;