[code] Fixed loop condition bug in ConsoleStore.

Change-Id: Ia6a46fe04614afcdace4ab3396282b3c5a6c308c
This commit is contained in:
Léa Saviot
2017-11-30 14:53:31 +01:00
parent d732bce90f
commit 1de30cbe06

View File

@@ -35,7 +35,7 @@ int ConsoleStore::numberOfLines() const {
return 0;
}
int result = 0;
for (int i=0; i<k_historySize; i++) {
for (int i = 0; i < k_historySize - 1; i++) {
if (m_history[i] == 0) {
result++;
if (m_history[i+1] == 0) {