# HG changeset patch # User Gaƫl PORTAY # Date 1430600607 -7200 # Node ID 2c646a65a1e39d48baad0c2e3dd430589dd8bb0e # Parent 2ebf450edc2d00c26d04dc3d68df58d0d2805a1c Turn addr local variable into char * diff -r 2ebf450edc2d -r 2c646a65a1e3 tcp-accept.c --- a/tcp-accept.c Sat May 02 22:48:11 2015 +0200 +++ b/tcp-accept.c Sat May 02 23:03:27 2015 +0200 @@ -75,7 +75,7 @@ } if (send_msg_channel_open_init(fd, tcpinfo->chantype) == DROPBEAR_SUCCESS) { - unsigned char* addr = NULL; + char* addr = NULL; unsigned int port = 0; if (tcpinfo->tcp_type == direct) { @@ -94,7 +94,7 @@ if (addr == NULL) { addr = "localhost"; } - buf_putstring(ses.writepayload, addr, strlen(addr)); + buf_putstring(ses.writepayload, (const unsigned char *)addr, strlen(addr)); buf_putint(ses.writepayload, port); /* originator ip */