Fixed crash bug in dialing console

This commit is contained in:
Andreas Eversberg 2021-10-08 16:04:19 +02:00
parent 465445aac5
commit 3a73f31d7e
1 changed files with 4 additions and 2 deletions

View File

@ -526,8 +526,10 @@ dial_after_hangup:
clear_console_text();
console_len = len;
memcpy(console_text, text, len);
memset(console_clear, ' ', len - 1);
console_clear[len - 1] = '\r';
if (len) {
memset(console_clear, ' ', len - 1);
console_clear[len - 1] = '\r';
}
print_console_text();
fflush(stdout);
}