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 /cli-tcpfwd.c | |
parent | 533aebe33656f0ade5f9071ae7880b54a097752b (diff) |
Fix print format specifier
Diffstat (limited to 'cli-tcpfwd.c')
-rw-r--r-- | cli-tcpfwd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli-tcpfwd.c b/cli-tcpfwd.c index fec5dba..b32d9e0 100644 --- a/cli-tcpfwd.c +++ b/cli-tcpfwd.c @@ -273,7 +273,7 @@ static int newtcpforwarded(struct Channel * channel) { goto out; } - snprintf(portstring, sizeof(portstring), "%d", fwd->connectport); + snprintf(portstring, sizeof(portstring), "%u", fwd->connectport); channel->conn_pending = connect_remote(fwd->connectaddr, portstring, channel_connect_done, channel); channel->prio = DROPBEAR_CHANNEL_PRIO_UNKNOWABLE; |