Fix print format specifier

This commit is contained in:
Chocobo1
2016-01-05 12:32:33 +08:00
parent 533aebe336
commit 9bcd5f3c0a
6 changed files with 7 additions and 7 deletions

View File

@@ -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;