summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2014-03-07 13:48:45 +0100
committerEthan Yonker <dees_troy@teamw.in>2014-03-07 13:48:45 +0100
commit6b4276f7607fe5a28eec76b6697dc06322b4ab53 (patch)
treedb30d9ee8cb7f3678dce0c14b6ebf99efeec9d9c
parentFix "\n\n" string in gui_print(), remove unused gui_print_overwrite() (diff)
downloadandroid_bootable_recovery-6b4276f7607fe5a28eec76b6697dc06322b4ab53.tar
android_bootable_recovery-6b4276f7607fe5a28eec76b6697dc06322b4ab53.tar.gz
android_bootable_recovery-6b4276f7607fe5a28eec76b6697dc06322b4ab53.tar.bz2
android_bootable_recovery-6b4276f7607fe5a28eec76b6697dc06322b4ab53.tar.lz
android_bootable_recovery-6b4276f7607fe5a28eec76b6697dc06322b4ab53.tar.xz
android_bootable_recovery-6b4276f7607fe5a28eec76b6697dc06322b4ab53.tar.zst
android_bootable_recovery-6b4276f7607fe5a28eec76b6697dc06322b4ab53.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 aae30a40b..848a34472 100644
--- a/gui/console.cpp
+++ b/gui/console.cpp
@@ -191,7 +191,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);
+ curr_line = curr_line.substr(line_char_width);
} else {
rConsole.push_back(curr_line);
break;