diff options
Diffstat (limited to 'Source/CTest/Curl/telnet.c')
-rw-r--r-- | Source/CTest/Curl/telnet.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/CTest/Curl/telnet.c b/Source/CTest/Curl/telnet.c index 7772d5e..876d311 100644 --- a/Source/CTest/Curl/telnet.c +++ b/Source/CTest/Curl/telnet.c @@ -826,10 +826,10 @@ static void suboption(struct connectdata *conn) struct SessionHandle *data = conn->data; struct TELNET *tn = (struct TELNET *)conn->proto.telnet; - printsub(data, '<', (unsigned char *)tn->subbuffer, SB_LEN(tn)+2); + printsub(data, '<', (unsigned char *)tn->subbuffer, (int)SB_LEN(tn)+2); switch (subchar = (unsigned char)SB_GET(tn)) { case TELOPT_TTYPE: - len = strlen(tn->subopt_ttype) + 4 + 2; + len = (int)strlen(tn->subopt_ttype) + 4 + 2; snprintf((char *)temp, sizeof(temp), "%c%c%c%c%s%c%c", IAC, SB, TELOPT_TTYPE, TELQUAL_IS, tn->subopt_ttype, IAC, SE); @@ -837,7 +837,7 @@ static void suboption(struct connectdata *conn) printsub(data, '>', &temp[2], len-2); break; case TELOPT_XDISPLOC: - len = strlen(tn->subopt_xdisploc) + 4 + 2; + len = (int)strlen(tn->subopt_xdisploc) + 4 + 2; snprintf((char *)temp, sizeof(temp), "%c%c%c%c%s%c%c", IAC, SB, TELOPT_XDISPLOC, TELQUAL_IS, tn->subopt_xdisploc, IAC, SE); @@ -850,7 +850,7 @@ static void suboption(struct connectdata *conn) len = 4; for(v = tn->telnet_vars;v;v = v->next) { - tmplen = (strlen(v->data) + 1); + tmplen = (int)(strlen(v->data) + 1); /* Add the variable only if it fits */ if(len + tmplen < (int)sizeof(temp)-6) { sscanf(v->data, "%127[^,],%s", varname, varval); |