ref: ac034f8966947a732d12d7c310dd130f75584a49
parent: 7a611a627d389d56c333c031ee6f24832c3cef32
author: Simon Howard <fraggle@soulsphere.org>
date: Sun Oct 8 14:38:30 EDT 2017
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.
--- a/src/net_query.c
+++ b/src/net_query.c
@@ -698,7 +698,7 @@
putchar('\n');
formatted_printf(5, "Ping");
- formatted_printf(18, "Address");
+ formatted_printf(22, "Address");
formatted_printf(8, "Players");
puts("Description");
@@ -723,7 +723,7 @@
}
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);