summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVojtech Bocek <vbocek@gmail.com>2014-03-04 19:57:45 +0100
committerVojtech Bocek <vbocek@gmail.com>2014-03-04 19:58:01 +0100
commitc58846b200532197047a103994186e8a760f1b39 (patch)
tree9292d0589855353932d8d520a373ce6df5e302a7
parentMerge "Check crypto footer before offering to decrypt" into android-4.4 (diff)
downloadandroid_bootable_recovery-c58846b200532197047a103994186e8a760f1b39.tar
android_bootable_recovery-c58846b200532197047a103994186e8a760f1b39.tar.gz
android_bootable_recovery-c58846b200532197047a103994186e8a760f1b39.tar.bz2
android_bootable_recovery-c58846b200532197047a103994186e8a760f1b39.tar.lz
android_bootable_recovery-c58846b200532197047a103994186e8a760f1b39.tar.xz
android_bootable_recovery-c58846b200532197047a103994186e8a760f1b39.tar.zst
android_bootable_recovery-c58846b200532197047a103994186e8a760f1b39.zip
-rw-r--r--gui/console.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/console.cpp b/gui/console.cpp
index 51ad21e59..f0d76c646 100644
--- a/gui/console.cpp
+++ b/gui/console.cpp
@@ -229,7 +229,7 @@ int GUIConsole::RenderConsole(void)
line_char_width = gr_maxExW(curr_line.c_str(), fontResource, mConsoleW);
if (line_char_width < curr_line.size()) {
rConsole.push_back(curr_line.substr(0, line_char_width));
- curr_line = curr_line.substr(line_char_width, curr_line.size() - line_char_width - 1);
+ curr_line = curr_line.substr(line_char_width, curr_line.size() - line_char_width);
} else {
rConsole.push_back(curr_line);
break;