|
Lines 939-945
suboption(void)
Link Here
|
| 939 |
} /* end of case TELOPT_TSPEED */ |
939 |
} /* end of case TELOPT_TSPEED */ |
| 940 |
|
940 |
|
| 941 |
case TELOPT_TTYPE: { /* Yaaaay! */ |
941 |
case TELOPT_TTYPE: { /* Yaaaay! */ |
| 942 |
static char terminalname[41]; |
942 |
char *p; |
| 943 |
|
943 |
|
| 944 |
if (his_state_is_wont(TELOPT_TTYPE)) /* Ignore if option disabled */ |
944 |
if (his_state_is_wont(TELOPT_TTYPE)) /* Ignore if option disabled */ |
| 945 |
break; |
945 |
break; |
|
Lines 949-957
suboption(void)
Link Here
|
| 949 |
return; /* ??? XXX but, this is the most robust */ |
949 |
return; /* ??? XXX but, this is the most robust */ |
| 950 |
} |
950 |
} |
| 951 |
|
951 |
|
| 952 |
terminaltype = terminalname; |
952 |
p = terminaltype; |
| 953 |
|
953 |
|
| 954 |
while ((terminaltype < (terminalname + sizeof terminalname-1)) && |
954 |
while ((p < (terminaltype + sizeof terminaltype-1)) && |
| 955 |
!SB_EOF()) { |
955 |
!SB_EOF()) { |
| 956 |
int c; |
956 |
int c; |
| 957 |
|
957 |
|
|
Lines 959-968
suboption(void)
Link Here
|
| 959 |
if (isupper(c)) { |
959 |
if (isupper(c)) { |
| 960 |
c = tolower(c); |
960 |
c = tolower(c); |
| 961 |
} |
961 |
} |
| 962 |
*terminaltype++ = c; /* accumulate name */ |
962 |
*p++ = c; /* accumulate name */ |
| 963 |
} |
963 |
} |
| 964 |
*terminaltype = 0; |
964 |
*p = 0; |
| 965 |
terminaltype = terminalname; |
|
|
| 966 |
break; |
965 |
break; |
| 967 |
} /* end of case TELOPT_TTYPE */ |
966 |
} /* end of case TELOPT_TTYPE */ |
| 968 |
|
967 |
|