telnet.c modified