From 1a4db21fe4e06f4a5e5b74e35027091370b54abb Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Thu, 4 Jun 2015 23:08:50 +0800 Subject: buf_getstring and buf_putstring now use non-unsigned char* --- common-session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common-session.c') diff --git a/common-session.c b/common-session.c index b712f05..8ec7516 100644 --- a/common-session.c +++ b/common-session.c @@ -467,7 +467,7 @@ static void send_msg_keepalive() { /* Some peers will reply with SSH_MSG_REQUEST_FAILURE, some will reply with SSH_MSG_UNIMPLEMENTED, some will exit. */ buf_putbyte(ses.writepayload, SSH_MSG_GLOBAL_REQUEST); - buf_putstring(ses.writepayload, (const unsigned char *) DROPBEAR_KEEPALIVE_STRING, + buf_putstring(ses.writepayload, DROPBEAR_KEEPALIVE_STRING, strlen(DROPBEAR_KEEPALIVE_STRING)); } buf_putbyte(ses.writepayload, 1); /* want_reply */ -- cgit v1.2.3