From 9bcd5f3c0aac51af390b77d725c124e42baa60cd Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Tue, 5 Jan 2016 12:32:33 +0800 Subject: Fix print format specifier --- tcp-accept.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tcp-accept.c') diff --git a/tcp-accept.c b/tcp-accept.c index 4456920..f1f51a7 100644 --- a/tcp-accept.c +++ b/tcp-accept.c @@ -121,7 +121,7 @@ int listen_tcpfwd(struct TCPListener* tcpinfo) { TRACE(("enter listen_tcpfwd")) /* first we try to bind, so don't need to do so much cleanup on failure */ - snprintf(portstring, sizeof(portstring), "%d", tcpinfo->listenport); + snprintf(portstring, sizeof(portstring), "%u", tcpinfo->listenport); nsocks = dropbear_listen(tcpinfo->listenaddr, portstring, socks, DROPBEAR_MAX_SOCKS, &errstring, &ses.maxfd); -- cgit v1.2.3