]> code.delx.au - gnu-emacs/blobdiff - lib-src/tcp.c
(mouse-drag-region): Ignore event end-point if it is not a number.
[gnu-emacs] / lib-src / tcp.c
index 6bcaab478ac95367edfe92deccf9dcd9c6451ad6..5741b52d132a6eff8bcaf7d34a33f418edddaa38 100644 (file)
@@ -122,7 +122,7 @@ main (argc, argv)
   bzero (&sockin, sizeof (sockin));
   sockin.sin_family = host->h_addrtype;
   bcopy (host->h_addr, &sockin.sin_addr, host->h_length);
-  sockin.sin_port = port;
+  sockin.sin_port = htons (port);
   if ((server = socket (AF_INET, SOCK_STREAM, 0)) < 0)
     {
       perror ("socket");