From 9f9827aa6d9174e5d3cb3855d78a7bf10d015010 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Thu, 16 Dec 1999 11:53:50 +0000 Subject: [PATCH] htons should really be ntohs git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7612 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/rsh/rsh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appl/rsh/rsh.c b/appl/rsh/rsh.c index d6beac2ea..d350b088c 100644 --- a/appl/rsh/rsh.c +++ b/appl/rsh/rsh.c @@ -557,7 +557,7 @@ doit_broken (int argc, hints.ai_protocol = IPPROTO_TCP; hints.ai_family = AF_INET; - snprintf (portstr, sizeof(portstr), "%u", htons(port)); + snprintf (portstr, sizeof(portstr), "%u", ntohs(port)); error = getaddrinfo (host, portstr, &hints, &ai); if (error) {