Fixed crash bug in dialing console

pull/1/head
Andreas Eversberg 1 year ago
parent 465445aac5
commit 3a73f31d7e
  1. 6
      src/libmobile/console.c

@ -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);
}

Loading…
Cancel
Save