=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/ssh.c,v retrieving revision 1.426 retrieving revision 1.427 diff -u -r1.426 -r1.427 --- src/usr.bin/ssh/ssh.c 2015/09/24 06:15:11 1.426 +++ src/usr.bin/ssh/ssh.c 2015/10/15 23:51:40 1.427 @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh.c,v 1.426 2015/09/24 06:15:11 djm Exp $ */ +/* $OpenBSD: ssh.c,v 1.427 2015/10/15 23:51:40 djm Exp $ */ /* * Author: Tatu Ylonen * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland @@ -235,7 +235,7 @@ if (port <= 0) port = default_ssh_port(); - snprintf(strport, sizeof strport, "%u", port); + snprintf(strport, sizeof strport, "%d", port); memset(&hints, 0, sizeof(hints)); hints.ai_family = options.address_family == -1 ? AF_UNSPEC : options.address_family;