]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Trivial fix for assertion failure introduced by the config revamp.
authorSimon Tatham <anakin@pobox.com>
Tue, 19 Jul 2011 17:06:43 +0000 (17:06 +0000)
committerSimon Tatham <anakin@pobox.com>
Tue, 19 Jul 2011 17:06:43 +0000 (17:06 +0000)
Spotted by Leonid Lisovskiy.

[originally from svn r9236]

telnet.c

index 05c9bf64d98c2ad6a6ebea201dbc0792f290f4a7..7bdfedb691987b500c9c57c2bf1bafa52157fad5 100644 (file)
--- a/telnet.c
+++ b/telnet.c
@@ -426,7 +426,7 @@ static void process_subneg(Telnet telnet)
            logevent(telnet->frontend, logbuf);
            sfree(logbuf);
            if (telnet->sb_opt == TELOPT_OLD_ENVIRON) {
-               if (conf_get_str(telnet->conf, CONF_rfc_environ)) {
+               if (conf_get_int(telnet->conf, CONF_rfc_environ)) {
                    value = RFC_VALUE;
                    var = RFC_VAR;
                } else {