]> asedeno.scripts.mit.edu Git - PuTTY_svn.git/blobdiff - config.c
Use the new host_str* functions to improve IPv6 literal support.
[PuTTY_svn.git] / config.c
index 5d0193440fd31aadc58bac1d9832c2b7a88085e1..1596c2f1d97d3ccbde0acdd37c7a6e1c5cfcd944 100644 (file)
--- a/config.c
+++ b/config.c
@@ -1146,7 +1146,7 @@ static void portfwd_handler(union control *ctrl, void *dlg,
            }
            if (*type != 'D') {
                val = dlg_editbox_get(pfd->destbox, dlg);
-               if (!*val || !strchr(val, ':')) {
+               if (!*val || !host_strchr(val, ':')) {
                    dlg_error_msg(dlg,
                                  "You need to specify a destination address\n"
                                  "in the form \"host.name:port\"");