diff options
author | Jacob Nevins <jacobn@chiark.greenend.org.uk> | 2022-10-21 21:01:58 +0300 |
---|---|---|
committer | Jacob Nevins <jacobn@chiark.greenend.org.uk> | 2022-10-21 21:01:58 +0300 |
commit | 1d1d81d66e3fb997d598a8cf041eec4c916ebcdc (patch) | |
tree | f9578986357a4e2ba8f88d3a2f252cf3a79e04ac | |
parent | dc9ab5e0f0c52f7f41960c807ae73a4e857a3df4 (diff) |
Fix regressions in Gtk host key "More info".
A description like "SHA256 fingerprint:" could run into the previous
public key blob; and add a missing colon.
-rw-r--r-- | unix/dialog.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/unix/dialog.c b/unix/dialog.c index 0d9d9573..7e9051be 100644 --- a/unix/dialog.c +++ b/unix/dialog.c @@ -3682,6 +3682,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) @@ -3690,6 +3691,7 @@ SeatPromptResult gtk_seat_confirm_ssh_host_key( put_data(moreinfo, p, linelen); p += linelen; } + put_byte(moreinfo, '\n'); break; default: break; |