X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=net.c;h=fa7cd4b80a7d96b26e35add01ad97d9a123f138d;hp=1369498905faa4ab729bac8209a6a03e8b920063;hb=52fb766fd183e555d8c85185e35a4dc365097756;hpb=904e302f0b64887f18c9e2fec7b0bb405675ad22 diff --git a/net.c b/net.c index 13694989..fa7cd4b8 100644 --- a/net.c +++ b/net.c @@ -376,7 +376,7 @@ int lookup_address(unsigned l4type, bool passive, const char *host, struct addrinfo *addr = NULL, hints; *result = NULL; - sprintf(port, "%u", port_number & 0xffff); + sprintf(port, "%d", port_number & 0xffff); /* Set up address hint structure */ memset(&hints, 0, sizeof(hints)); hints.ai_family = AF_UNSPEC;