From 5f2c4ca44f0903bddd40ca7d98feea2b6b734e39 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sun, 26 Jun 2022 21:15:38 +0300 Subject: [PATCH 61/61] gtk: Increase size of the "players count" buffer in server list It was too small for translation of "Unknown" under some locales See osdn #44944 Signed-off-by: Marko Lindqvist --- client/gui-gtk-3.22/pages.c | 2 +- client/gui-gtk-4.0/pages.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/gui-gtk-3.22/pages.c b/client/gui-gtk-3.22/pages.c index 015ad24aac..76dc14be42 100644 --- a/client/gui-gtk-3.22/pages.c +++ b/client/gui-gtk-3.22/pages.c @@ -720,7 +720,7 @@ static void update_server_list(enum server_scan_type sstype, port = atoi(portstr); server_list_iterate(list, pserver) { - char buf[20]; + char buf[35]; if (pserver->humans >= 0) { fc_snprintf(buf, sizeof(buf), "%d", pserver->humans); diff --git a/client/gui-gtk-4.0/pages.c b/client/gui-gtk-4.0/pages.c index 73ea21f163..70bbd9a7f5 100644 --- a/client/gui-gtk-4.0/pages.c +++ b/client/gui-gtk-4.0/pages.c @@ -726,7 +726,7 @@ static void update_server_list(enum server_scan_type sstype, port = atoi(portstr); server_list_iterate(list, pserver) { - char buf[20]; + char buf[35]; if (pserver->humans >= 0) { fc_snprintf(buf, sizeof(buf), "%d", pserver->humans); -- 2.35.1