sb should be unsigned
This commit is contained in:
parent
06e9765af0
commit
84f44336d5
@ -353,7 +353,7 @@ int main(int argc, char ** argv) {
|
|||||||
int ttype;
|
int ttype;
|
||||||
uint32_t option = 0, done = 0, sb_mode = 0;
|
uint32_t option = 0, done = 0, sb_mode = 0;
|
||||||
/* Various pieces for the telnet communication */
|
/* Various pieces for the telnet communication */
|
||||||
char sb[1024] = {0};
|
unsigned char sb[1024] = {0};
|
||||||
unsigned short sb_len = 0;
|
unsigned short sb_len = 0;
|
||||||
|
|
||||||
/* Whether or not to show the MOTD intro */
|
/* Whether or not to show the MOTD intro */
|
||||||
@ -485,7 +485,7 @@ int main(int argc, char ** argv) {
|
|||||||
/* This was a response to the TTYPE command, meaning
|
/* This was a response to the TTYPE command, meaning
|
||||||
* that this should be a terminal type */
|
* that this should be a terminal type */
|
||||||
alarm(2);
|
alarm(2);
|
||||||
strcpy(term, &sb[2]);
|
strcpy(term, (char *)&sb[2]);
|
||||||
done++;
|
done++;
|
||||||
}
|
}
|
||||||
else if (sb[0] == NAWS) {
|
else if (sb[0] == NAWS) {
|
||||||
|
Loading…
Reference in New Issue
Block a user