From 0a53143ab2af803cfc00358a551c06bb4f95fae2 Mon Sep 17 00:00:00 2001 From: piaip Date: Sun, 7 Jun 2009 16:15:19 +0000 Subject: * 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 --- mbbsd/mbbsd.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'mbbsd') 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(); -- cgit v1.2.3