From f31a72ba09d20e076f62e39e0f59404511bf6c86 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sat, 10 Jun 2017 11:29:21 +0100 Subject: [PATCH] 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. --- unix/gtkwin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unix/gtkwin.c b/unix/gtkwin.c index f54289a3..9e73181e 100644 --- a/unix/gtkwin.c +++ b/unix/gtkwin.c @@ -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);