diff options
author | Chocobo1 <Chocobo1@users.noreply.github.com> | 2016-01-05 12:32:33 +0800 |
---|---|---|
committer | Chocobo1 <Chocobo1@users.noreply.github.com> | 2016-01-05 12:37:48 +0800 |
commit | 9bcd5f3c0aac51af390b77d725c124e42baa60cd (patch) | |
tree | a73fb0457dbe6a90ba622e0791adf0938ee367ea /tcp-accept.c | |
parent | 533aebe33656f0ade5f9071ae7880b54a097752b (diff) |
Fix print format specifier
Diffstat (limited to 'tcp-accept.c')
-rw-r--r-- | tcp-accept.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |