diff options
Diffstat (limited to 'inet/rexec.c')
-rw-r--r-- | inet/rexec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inet/rexec.c b/inet/rexec.c index decee94e6d..4eae8f79ee 100644 --- a/inet/rexec.c +++ b/inet/rexec.c @@ -65,7 +65,7 @@ rexec_af(ahost, rport, name, pass, cmd, fd2p, af) int gai; char servbuff[NI_MAXSERV]; - snprintf(servbuff, sizeof(servbuff), "%d", rport); + snprintf(servbuff, sizeof(servbuff), "%d", ntohs(rport)); servbuff[sizeof(servbuff) - 1] = '\0'; memset(&hints, 0, sizeof(hints)); |