1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-03-12 18:13:50 -05:00

Unix: use conf_dest() in 'unable to open connection' error box.

Alamy Liu points out that asking for CONF_host will display the wrong
part of the configuration in the case where serial port setup fails.
The Windows front end's analogous message already got this right, but
I must have forgotten to change this one too when I introduced
conf_dest.
This commit is contained in:
Simon Tatham 2017-06-10 11:29:21 +01:00
parent 6aac4b9cef
commit f31a72ba09

View File

@ -4274,7 +4274,7 @@ static void start_backend(struct gui_data *inst)
if (error) {
char *msg = dupprintf("Unable to open connection to %s:\n%s",
conf_get_str(inst->conf, CONF_host), error);
conf_dest(inst->conf), error);
inst->exited = TRUE;
fatal_message_box(inst->window, msg);
sfree(msg);