diff svr-tcpfwd.c @ 1247:428d83f2e5db

merge github master
author Matt Johnston <matt@ucc.asn.au>
date Thu, 10 Mar 2016 21:37:35 +0800
parents 888e3d17e962
children 52a456a3add0
line wrap: on
line diff
--- a/svr-tcpfwd.c	Thu Mar 10 21:35:23 2016 +0800
+++ b/svr-tcpfwd.c	Thu Mar 10 21:37:35 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;