foxygit / doom Log in
commit ac034f8966947a732d12d7c310dd130f75584a49
Author:     Simon Howard <fraggle@soulsphere.org>
AuthorDate: Sun Oct 8 18:38:30 2017 -0400
Commit:     Simon Howard <fraggle@soulsphere.org>
CommitDate: Sun Oct 8 18:38:30 2017 -0400

    net: Increase width of "Address" column.

    Since 29a66d7a5cf87d0cfc we now include the port number in server
    addresses if they are a nonstandard port. So a full IP+port string
    can be up to 21 characters long.
---
 src/net_query.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/net_query.c b/src/net_query.c
index 94fdf03b..879a9026 100644
--- a/src/net_query.c
+++ b/src/net_query.c
@@ -698,7 +698,7 @@ static void PrintHeader(void)

     putchar('\n');
     formatted_printf(5, "Ping");
-    formatted_printf(18, "Address");
+    formatted_printf(22, "Address");
     formatted_printf(8, "Players");
     puts("Description");

@@ -723,7 +723,7 @@ static void NET_QueryPrintCallback(net_addr_t *addr,
     }

     formatted_printf(5, "%4i", ping_time);
-    formatted_printf(18, "%s: ", NET_AddrToString(addr));
+    formatted_printf(22, "%s", NET_AddrToString(addr));
     formatted_printf(8, "%i/%i", data->num_players,
                                  data->max_players);