summaryrefslogtreecommitdiff
path: root/lib/telnet.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2006-07-19 21:14:02 +0000
committerYang Tse <yangsita@gmail.com>2006-07-19 21:14:02 +0000
commitd157c292693972658d138475276dca85df77539b (patch)
treed51651e65fe7145775ae0562c5a25cbdbce9dc8d /lib/telnet.c
parent4d2e81661bbea7164209b5aac28c4f3d3f5dae8c (diff)
downloadcurl-d157c292693972658d138475276dca85df77539b.tar.gz
Fix compiler warnings
Diffstat (limited to 'lib/telnet.c')
-rw-r--r--lib/telnet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/telnet.c b/lib/telnet.c
index 29e053e15..5f94807df 100644
--- a/lib/telnet.c
+++ b/lib/telnet.c
@@ -295,8 +295,8 @@ static void send_negotiation(struct connectdata *conn, int cmd, int option)
struct SessionHandle *data = conn->data;
buf[0] = CURL_IAC;
- buf[1] = cmd;
- buf[2] = option;
+ buf[1] = (unsigned char)cmd;
+ buf[2] = (unsigned char)option;
bytes_written = swrite(conn->sock[FIRSTSOCKET], buf, 3);
if(bytes_written < 0) {