diff svr-tcpfwd.c @ 1237:888e3d17e962

Fix print format specifier
author Chocobo1 <Chocobo1@users.noreply.github.com>
date Tue, 05 Jan 2016 12:32:33 +0800
parents aaf576b27a10
children 52a456a3add0
line wrap: on
line diff
--- a/svr-tcpfwd.c	Tue Jan 05 12:25:10 2016 +0800
+++ b/svr-tcpfwd.c	Tue Jan 05 12:32:33 2016 +0800
@@ -269,7 +269,7 @@
 		goto out;
 	}
 
-	snprintf(portstring, sizeof(portstring), "%d", destport);
+	snprintf(portstring, sizeof(portstring), "%u", destport);
 	channel->conn_pending = connect_remote(desthost, portstring, channel_connect_done, channel);
 
 	channel->prio = DROPBEAR_CHANNEL_PRIO_UNKNOWABLE;