summaryrefslogtreecommitdiffstats
path: root/mbbsd/mbbsd.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-08 00:15:19 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-06-08 00:15:19 +0800
commit0a53143ab2af803cfc00358a551c06bb4f95fae2 (patch)
tree89891079e71cb062482b5abcbad73e8c88e0cb4e /mbbsd/mbbsd.c
parent210b4a599fe77453e97a29496aa055cc8c5a229e (diff)
downloadpttbbs-0a53143ab2af803cfc00358a551c06bb4f95fae2.tar
pttbbs-0a53143ab2af803cfc00358a551c06bb4f95fae2.tar.gz
pttbbs-0a53143ab2af803cfc00358a551c06bb4f95fae2.tar.bz2
pttbbs-0a53143ab2af803cfc00358a551c06bb4f95fae2.tar.lz
pttbbs-0a53143ab2af803cfc00358a551c06bb4f95fae2.tar.xz
pttbbs-0a53143ab2af803cfc00358a551c06bb4f95fae2.tar.zst
pttbbs-0a53143ab2af803cfc00358a551c06bb4f95fae2.zip
* set_converting_type should be only used within #ifdef CONVERT
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4519 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mbbsd.c')
-rw-r--r--mbbsd/mbbsd.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index 6d86247b..003ff719 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -1877,10 +1877,13 @@ tunnel_login(char *argv0, struct ProgramOption *option)
strlcpy(fromhost, dat.hostip, sizeof(fromhost));
strlcpy(option->flag_user, dat.userid, sizeof(option->flag_user));
- if (dat.encoding)
- set_converting_type(dat.encoding);
option->term_width = dat.t_cols;
option->term_height = dat.t_lines;
+#ifdef CONVERT
+ if (dat.encoding)
+ set_converting_type(dat.encoding);
+#endif
+
telnet_init(0);
#ifdef DETECT_CLIENT
telnet_turnoff_client_detect();