Merge cosmetic and docs fixes from 'pre-0.78'.

This commit is contained in:
Jacob Nevins 2022-10-21 20:13:16 +01:00
commit 61b3cde507
6 changed files with 38 additions and 22 deletions

View file

@ -3681,6 +3681,7 @@ SeatPromptResult gtk_seat_confirm_ssh_host_key(
/* We have to manually wrap the public key, or else the GtkLabel
* will resize itself to accommodate the longest word, which will
* lead to a hilariously wide message box. */
put_byte(moreinfo, ':');
for (const char *p = item->text, *q = p + strlen(p); p < q ;) {
size_t linelen = q-p;
if (linelen > 72)
@ -3689,6 +3690,7 @@ SeatPromptResult gtk_seat_confirm_ssh_host_key(
put_data(moreinfo, p, linelen);
p += linelen;
}
put_byte(moreinfo, '\n');
break;
default:
break;