net.c: Fix format string in stringify_port().
[paraslash.git] / net.c
diff --git a/net.c b/net.c
index dcadf54..aa3fcbb 100644 (file)
--- a/net.c
+++ b/net.c
@@ -208,7 +208,7 @@ const char *stringify_port(int port, const char *transport)
                struct servent *se = getservbyport(htons(port), transport);
 
                if (se == NULL)
-                       snprintf(service, sizeof(service), "%u", port);
+                       snprintf(service, sizeof(service), "%d", port);
                else
                        snprintf(service, sizeof(service), "%s", se->s_name);
        }